#CDC157#CDC157

#CDC157 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.128 H 102.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CDC157
RGBrgb(205, 193, 87)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 58%, 80%)
CMYKcmyk(0%, 5.9%, 57.6%, 19.6%)
CIE-LABlab(77.17, -9.10, 53.80)
CIE-LCHlch(77.17, 54.57, 99.61°)
OKLaboklab(80% -0.0285 0.1246)
OKLCHoklch(80% 0.128 102.9)
XYZxyz(45.9687, 51.8088, 16.5937)
Luminance0.5181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC157 #5763CD
analogous
#CD8657 #CDC157 #9ECD57
triadic
#CDC157 #57CDC1 #C157CD
tetradic
#CDC157 #57CD86 #5763CD #CD579E
square
#CDC157 #57CD86 #5763CD #CD579E
split-complementary
#CDC157 #579ECD #8657CD
monochromatic
#837927 #B2A535 #CDC157 #DBD286 #E9E4B5

Accessibility & contrast

On white

1.85
#CDC157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CDC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC157
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC157#FFFFFF#000000##000000
##CDC1571.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB4C
Deuteranopia (green-blind)
#D4C15C
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc157;
/* rgb */ color: rgb(205, 193, 87);
/* oklch */ color: oklch(80.0% 0.128 102.9);
Tailwind
colors: {
  custom: {
    50: '#dfd38a',
    500: '#cdc157',
    950: '#000000',
  },
}
SCSS
$custom: #cdc157;
$custom-light: #dfd38a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc157",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 53.898,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80002,
    "c": 0.12782,
    "h": 102.9
  },
  "luminance": 0.51807
}

Semantic roles & 50–950 ramp

primary
#CDC157
secondary
#3E468A
accent
#59DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC157

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

Preview Lab → · Contrast checker → · Palette generator →

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