#CDC74B#CDC74B

#CDC74B is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.2% C 0.143 H 106.5°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#CDC74B
RGBrgb(205, 199, 75)
HSLhsl(57, 57%, 55%)
HSVhsv(57, 63%, 80%)
CMYKcmyk(0%, 2.9%, 63.4%, 19.6%)
CIE-LABlab(78.66, -12.98, 60.66)
CIE-LCHlch(78.66, 62.03, 102.07°)
OKLaboklab(81.15% -0.0408 0.1376)
OKLCHoklch(81.15% 0.143 106.5)
XYZxyz(46.8719, 54.3355, 14.6740)
Luminance0.5433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC74B #4B51CD
analogous
#CD864B #CDC74B #92CD4B
triadic
#CDC74B #4BCDC7 #C74BCD
tetradic
#CDC74B #4BCD86 #4B51CD #CD4B92
square
#CDC74B #4BCD86 #4B51CD #CD4B92
split-complementary
#CDC74B #4B92CD #864BCD
monochromatic
#7B7722 #ABA630 #CDC74B #DAD67B #E8E5AB

Accessibility & contrast

On white

1.77
#CDC74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#CDC74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC74B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC74B#FFFFFF#000000##000000
##CDC74B1.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03B
Deuteranopia (green-blind)
#DAC553
Tritanopia (blue-blind)
#DBBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc74b;
/* rgb */ color: rgb(205, 199, 75);
/* oklch */ color: oklch(81.2% 0.143 106.5);
Tailwind
colors: {
  custom: {
    50: '#dfd783',
    500: '#cdc74b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc74b;
$custom-light: #dfd783;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc74b",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 57.231,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.81154,
    "c": 0.14349,
    "h": 106.5
  },
  "luminance": 0.54334
}

Semantic roles & 50–950 ramp

primary
#CDC74B
secondary
#393C83
accent
#4FE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC74B

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

Preview Lab → · Contrast checker → · Palette generator →

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