#CDC74D#CDC74D

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

Color values

HEX#CDC74D
RGBrgb(205, 199, 77)
HSLhsl(57, 56%, 55%)
HSVhsv(57, 62%, 80%)
CMYKcmyk(0%, 2.9%, 62.4%, 19.6%)
CIE-LABlab(78.67, -12.85, 59.84)
CIE-LCHlch(78.67, 61.21, 102.12°)
OKLaboklab(81.17% -0.0403 0.1361)
OKLCHoklch(81.17% 0.142 106.5)
XYZxyz(46.9414, 54.3633, 15.0402)
Luminance0.5436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC74D #4D53CD
analogous
#CD874D #CDC74D #93CD4D
triadic
#CDC74D #4DCDC7 #C74DCD
tetradic
#CDC74D #4DCD87 #4D53CD #CD4D93
square
#CDC74D #4DCD87 #4D53CD #CD4D93
split-complementary
#CDC74D #4D93CD #874DCD
monochromatic
#7D7823 #ACA730 #CDC74D #DAD67D #E8E5AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC74D#FFFFFF#000000##000000
##CDC74D1.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)
#D7C03E
Deuteranopia (green-blind)
#DAC554
Tritanopia (blue-blind)
#DBBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc74d;
/* rgb */ color: rgb(205, 199, 77);
/* oklch */ color: oklch(81.2% 0.142 106.5);
Tailwind
colors: {
  custom: {
    50: '#dfd784',
    500: '#cdc74d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc74d;
$custom-light: #dfd784;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc74d",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 57.188,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81172,
    "c": 0.14195,
    "h": 106.5
  },
  "luminance": 0.54362
}

Semantic roles & 50–950 ramp

primary
#CDC74D
secondary
#3A3D84
accent
#4FDF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC74D

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

Preview Lab → · Contrast checker → · Palette generator →

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