#CDC255#CDC255

#CDC255 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.131 H 103.6°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#CDC255
RGBrgb(205, 194, 85)
HSLhsl(55, 55%, 57%)
HSVhsv(55, 59%, 80%)
CMYKcmyk(0%, 5.4%, 58.5%, 19.6%)
CIE-LABlab(77.41, -9.76, 54.98)
CIE-LCHlch(77.41, 55.84, 100.07°)
OKLaboklab(80.19% -0.0306 0.1269)
OKLCHoklch(80.19% 0.131 103.6)
XYZxyz(46.1099, 52.2202, 16.2432)
Luminance0.5222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC255 #5560CD
analogous
#CD8655 #CDC255 #9CCD55
triadic
#CDC255 #55CDC2 #C255CD
tetradic
#CDC255 #55CD86 #5560CD #CD559C
square
#CDC255 #55CD86 #5560CD #CD559C
split-complementary
#CDC255 #559CCD #8655CD
monochromatic
#827926 #B1A534 #CDC255 #DBD384 #E9E4B4

Accessibility & contrast

On white

1.84
#CDC255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.44
#CDC255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC255
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC255#FFFFFF#000000##000000
##CDC2551.001.8411.4411.44
#FFFFFF1.841.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC49
Deuteranopia (green-blind)
#D5C25B
Tritanopia (blue-blind)
#DBB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc255;
/* rgb */ color: rgb(205, 194, 85);
/* oklch */ color: oklch(80.2% 0.131 103.6);
Tailwind
colors: {
  custom: {
    50: '#dfd489',
    500: '#cdc255',
    950: '#000000',
  },
}
SCSS
$custom: #cdc255;
$custom-light: #dfd489;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc255",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 85
  },
  "hsl": {
    "h": 54.5,
    "s": 54.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80192,
    "c": 0.13052,
    "h": 103.6
  },
  "luminance": 0.52219
}

Semantic roles & 50–950 ramp

primary
#CDC255
secondary
#3D4489
accent
#57DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC255

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

Preview Lab → · Contrast checker → · Palette generator →

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