#CDC057#CDC057

#CDC057 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.127 H 102.3°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#CDC057
RGBrgb(205, 192, 87)
HSLhsl(53, 54%, 57%)
HSVhsv(53, 58%, 80%)
CMYKcmyk(0%, 6.3%, 57.6%, 19.6%)
CIE-LABlab(76.90, -8.59, 53.50)
CIE-LCHlch(76.90, 54.19, 99.12°)
OKLaboklab(79.79% -0.027 0.124)
OKLCHoklch(79.79% 0.127 102.3)
XYZxyz(45.7484, 51.3682, 16.5202)
Luminance0.5137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC057 #5764CD
analogous
#CD8557 #CDC057 #9FCD57
triadic
#CDC057 #57CDC0 #C057CD
tetradic
#CDC057 #57CD85 #5764CD #CD579F
square
#CDC057 #57CD85 #5764CD #CD579F
split-complementary
#CDC057 #579FCD #8557CD
monochromatic
#837927 #B2A435 #CDC057 #DBD286 #E9E3B5

Accessibility & contrast

On white

1.86
#CDC057 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#CDC057 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC057
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC057#FFFFFF#000000##000000
##CDC0571.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA4C
Deuteranopia (green-blind)
#D4C05C
Tritanopia (blue-blind)
#DBB4A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc057;
/* rgb */ color: rgb(205, 192, 87);
/* oklch */ color: oklch(79.8% 0.127 102.3);
Tailwind
colors: {
  custom: {
    50: '#dfd28a',
    500: '#cdc057',
    950: '#000000',
  },
}
SCSS
$custom: #cdc057;
$custom-light: #dfd28a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc057",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 87
  },
  "hsl": {
    "h": 53.39,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.79792,
    "c": 0.12687,
    "h": 102.3
  },
  "luminance": 0.51367
}

Semantic roles & 50–950 ramp

primary
#CDC057
secondary
#3E478A
accent
#5BDD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC057

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

Preview Lab → · Contrast checker → · Palette generator →

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