#CAD940#CAD940

#CAD940 is a very light, vivid yellow. Relative luminance 0.626; OKLCH L 84.7% C 0.170 H 115.0°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#CAD940
RGBrgb(202, 217, 64)
HSLhsl(66, 67%, 55%)
HSVhsv(66, 71%, 85%)
CMYKcmyk(6.9%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.21, -23.73, 69.42)
CIE-LCHlch(83.21, 73.36, 108.87°)
OKLaboklab(84.71% -0.0719 0.1544)
OKLCHoklch(84.71% 0.17 115)
XYZxyz(50.0967, 62.5533, 14.2845)
Luminance0.6255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAD940 #4F40D9
analogous
#D99B40 #CAD940 #7ED940
triadic
#CAD940 #40CAD9 #D940CA
tetradic
#CAD940 #40D99B #4F40D9 #D9407E
square
#CAD940 #40D99B #4F40D9 #D9407E
split-complementary
#CAD940 #407ED9 #9B40D9
monochromatic
#7A841A #A9B724 #CAD940 #D8E373 #E6EDA6

Accessibility & contrast

On white

1.55
#CAD940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#CAD940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAD940
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAD940#FFFFFF#000000##000000
##CAD9401.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#E7D14C
Tritanopia (blue-blind)
#D7CCBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cad940;
/* rgb */ color: rgb(202, 217, 64);
/* oklch */ color: oklch(84.7% 0.170 115.0);
Tailwind
colors: {
  custom: {
    50: '#dee47f',
    500: '#cad940',
    950: '#000000',
  },
}
SCSS
$custom: #cad940;
$custom-light: #dee47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cad940",
  "rgb": {
    "r": 202,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 65.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84709,
    "c": 0.1703,
    "h": 115
  },
  "luminance": 0.62552
}

Semantic roles & 50–950 ramp

primary
#CAD940
secondary
#3B328B
accent
#3EEA4F
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CAD940

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CAD940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva