#CDC74E#CDC74E

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

Color values

HEX#CDC74E
RGBrgb(205, 199, 78)
HSLhsl(57, 56%, 55%)
HSVhsv(57, 62%, 80%)
CMYKcmyk(0%, 2.9%, 62%, 19.6%)
CIE-LABlab(78.68, -12.79, 59.43)
CIE-LCHlch(78.68, 60.79, 102.14°)
OKLaboklab(81.18% -0.04 0.1354)
OKLCHoklch(81.18% 0.141 106.5)
XYZxyz(46.9770, 54.3776, 15.2276)
Luminance0.5438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC74E #4E54CD
analogous
#CD874E #CDC74E #94CD4E
triadic
#CDC74E #4ECDC7 #C74ECD
tetradic
#CDC74E #4ECD87 #4E54CD #CD4E94
square
#CDC74E #4ECD87 #4E54CD #CD4E94
split-complementary
#CDC74E #4E94CD #874ECD
monochromatic
#7D7923 #ADA731 #CDC74E #DAD67E #E8E5AD

Accessibility & contrast

On white

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

On black

11.88
#CDC74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC74E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC74E#FFFFFF#000000##000000
##CDC74E1.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03F
Deuteranopia (green-blind)
#DAC555
Tritanopia (blue-blind)
#DBBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc74e;
/* rgb */ color: rgb(205, 199, 78);
/* oklch */ color: oklch(81.2% 0.141 106.5);
Tailwind
colors: {
  custom: {
    50: '#dfd785',
    500: '#cdc74e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc74e;
$custom-light: #dfd785;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc74e",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 57.165,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81181,
    "c": 0.14117,
    "h": 106.5
  },
  "luminance": 0.54376
}

Semantic roles & 50–950 ramp

primary
#CDC74E
secondary
#3A3E85
accent
#50DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC74E

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

Preview Lab → · Contrast checker → · Palette generator →

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