#CDC54F#CDC54F

#CDC54F is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.8% C 0.138 H 105.4°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CDC54F
RGBrgb(205, 197, 79)
HSLhsl(56, 56%, 56%)
HSVhsv(56, 61%, 80%)
CMYKcmyk(0%, 3.9%, 61.5%, 19.6%)
CIE-LABlab(78.16, -11.71, 58.44)
CIE-LCHlch(78.16, 59.60, 101.33°)
OKLaboklab(80.77% -0.0368 0.1334)
OKLCHoklch(80.77% 0.138 105.4)
XYZxyz(46.5560, 53.4777, 15.2655)
Luminance0.5348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC54F #4F57CD
analogous
#CD864F #CDC54F #96CD4F
triadic
#CDC54F #4FCDC5 #C54FCD
tetradic
#CDC54F #4FCD86 #4F57CD #CD4F96
square
#CDC54F #4FCD86 #4F57CD #CD4F96
split-complementary
#CDC54F #4F96CD #864FCD
monochromatic
#7E7824 #AEA631 #CDC54F #DBD57F #E8E4AE

Accessibility & contrast

On white

1.80
#CDC54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CDC54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC54F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC54F#FFFFFF#000000##000000
##CDC54F1.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE41
Deuteranopia (green-blind)
#D8C456
Tritanopia (blue-blind)
#DBB9AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc54f;
/* rgb */ color: rgb(205, 197, 79);
/* oklch */ color: oklch(80.8% 0.138 105.4);
Tailwind
colors: {
  custom: {
    50: '#dfd685',
    500: '#cdc54f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc54f;
$custom-light: #dfd685;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc54f",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 56.19,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80766,
    "c": 0.13841,
    "h": 105.4
  },
  "luminance": 0.53476
}

Semantic roles & 50–950 ramp

primary
#CDC54F
secondary
#3B3F86
accent
#52DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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