• Manual
  • Scripting API
  • Changelog
  • License
🏷️ Namespaces
  • Zigurous.ColorPro
  • Zigurous.ColorPro.Utils
🧱 Classes
  • Accessibility
  • Adjustment
  • Arithmetic
  • Averaging
  • Blending
  • ChannelMixer
  • ColorBlindness
  • ColorPalette
  • ComponentModelExtensions
  • Components
  • Contrast
  • Conversion
  • ConversionExtensions
  • Equality
  • Gradients
  • Harmonies
  • Hex
  • IlluminantExtensions
  • Luminance
  • MaterialPalette
  • Mixing
  • MixingModelExtensions
  • Processors
  • Random
  • SignalEncodingExtensions
  • Temperature
🗂️ Structs
  • ARGB
  • ARGB255
  • CIELAB
  • CIELCh_ab
  • CIELCh_uv
  • CIELUV
  • CIEUCS
  • CIEUVW
  • CIEXYZ
  • CIExyY
  • CMYK
  • HSB
  • HSI
  • HSL
  • HSV
  • HunterLab
  • LMS
  • LumaCoefficients
  • RGB
  • RGB255
  • RGBA
  • RGBA255
  • Tristimulus
  • YCbCr
  • YIQ
  • YPbPr
  • YUV
🎚️ Interfaces
  • IComponentModel
  • IComponentModel<T>
  • IComponentModelEncoded
  • IComponentModelEncoded<T>
📋 Enums
  • Accessibility.Requirement
  • BlendMode
  • ColorVision
  • ColorWheelDivision
  • ComponentModel
  • Illuminant
  • MixingModel
  • SignalEncoding
  • StandardObserver
🗣️ Delegates
  • Blending.BlendFunction

Contrast.ContrastRatio

Extension Method in Contrast

Declaration

public static float ContrastRatio(this Color color, Color other)

Description

Returns the contrast ratio of the color to another color.

Parameters

colorThe first color to compare.
otherThe second color to compare.

Returns

floatThe contrast ratio of the color to another color.