#CDC74C#CDC74C

#CDC74C 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#CDC74C
RGBrgb(205, 199, 76)
HSLhsl(57, 56%, 55%)
HSVhsv(57, 63%, 80%)
CMYKcmyk(0%, 2.9%, 62.9%, 19.6%)
CIE-LABlab(78.67, -12.91, 60.25)
CIE-LCHlch(78.67, 61.62, 102.10°)
OKLaboklab(81.16% -0.0406 0.1368)
OKLCHoklch(81.16% 0.143 106.5)
XYZxyz(46.9064, 54.3493, 14.8557)
Luminance0.5435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC74C #4C52CD
analogous
#CD864C #CDC74C #93CD4C
triadic
#CDC74C #4CCDC7 #C74CCD
tetradic
#CDC74C #4CCD86 #4C52CD #CD4C93
square
#CDC74C #4CCD86 #4C52CD #CD4C93
split-complementary
#CDC74C #4C93CD #864CCD
monochromatic
#7C7823 #ACA630 #CDC74C #DAD67C #E8E5AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC74C#FFFFFF#000000##000000
##CDC74C1.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)
#D7C03D
Deuteranopia (green-blind)
#DAC553
Tritanopia (blue-blind)
#DBBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc74c;
/* rgb */ color: rgb(205, 199, 76);
/* oklch */ color: oklch(81.2% 0.143 106.5);
Tailwind
colors: {
  custom: {
    50: '#dfd784',
    500: '#cdc74c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc74c;
$custom-light: #dfd784;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc74c",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 76
  },
  "hsl": {
    "h": 57.209,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81163,
    "c": 0.14272,
    "h": 106.5
  },
  "luminance": 0.54348
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC74C

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

Preview Lab → · Contrast checker → · Palette generator →

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