#CDC954#CDC954

#CDC954 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.138 H 107.3°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CDC954
RGBrgb(205, 201, 84)
HSLhsl(58, 55%, 57%)
HSVhsv(58, 59%, 80%)
CMYKcmyk(0%, 2%, 59%, 19.6%)
CIE-LABlab(79.27, -13.39, 57.48)
CIE-LCHlch(79.27, 59.02, 103.11°)
OKLaboklab(81.66% -0.041 0.1321)
OKLCHoklch(81.66% 0.138 107.3)
XYZxyz(47.6652, 55.3940, 16.5671)
Luminance0.5539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC954 #5458CD
analogous
#CD8D54 #CDC954 #94CD54
triadic
#CDC954 #54CDC9 #C954CD
tetradic
#CDC954 #54CD8D #5458CD #CD5494
square
#CDC954 #54CD8D #5458CD #CD5494
split-complementary
#CDC954 #5494CD #8D54CD
monochromatic
#817E26 #B0AC34 #CDC954 #DBD883 #E9E7B3

Accessibility & contrast

On white

1.74
#CDC954 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CDC954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC954
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC954#FFFFFF#000000##000000
##CDC9541.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C247
Deuteranopia (green-blind)
#DBC75B
Tritanopia (blue-blind)
#DBBDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc954;
/* rgb */ color: rgb(205, 201, 84);
/* oklch */ color: oklch(81.7% 0.138 107.3);
Tailwind
colors: {
  custom: {
    50: '#dfd989',
    500: '#cdc954',
    950: '#000000',
  },
}
SCSS
$custom: #cdc954;
$custom-light: #dfd989;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc954",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 84
  },
  "hsl": {
    "h": 58.017,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81665,
    "c": 0.1383,
    "h": 107.3
  },
  "luminance": 0.55393
}

Semantic roles & 50–950 ramp

primary
#CDC954
secondary
#3D3F88
accent
#4FDE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC954

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

Preview Lab → · Contrast checker → · Palette generator →

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