#CDCA57#CDCA57

#CDCA57 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.9% C 0.137 H 107.7°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#CDCA57
RGBrgb(205, 202, 87)
HSLhsl(58, 54%, 57%)
HSVhsv(58, 58%, 80%)
CMYKcmyk(0%, 1.5%, 57.6%, 19.6%)
CIE-LABlab(79.56, -13.68, 56.49)
CIE-LCHlch(79.56, 58.12, 103.62°)
OKLaboklab(81.91% -0.0415 0.1303)
OKLCHoklch(81.91% 0.137 107.7)
XYZxyz(48.0191, 55.9097, 17.2771)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA57 #575ACD
analogous
#CD8F57 #CDCA57 #95CD57
triadic
#CDCA57 #57CDCA #CA57CD
tetradic
#CDCA57 #57CD8F #575ACD #CD5795
square
#CDCA57 #57CD8F #575ACD #CD5795
split-complementary
#CDCA57 #5795CD #8F57CD
monochromatic
#838027 #B2AF35 #CDCA57 #DBD986 #E9E8B5

Accessibility & contrast

On white

1.72
#CDCA57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#CDCA57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA57
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA57#FFFFFF#000000##000000
##CDCA571.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C34B
Deuteranopia (green-blind)
#DBC75D
Tritanopia (blue-blind)
#DABEB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca57;
/* rgb */ color: rgb(205, 202, 87);
/* oklch */ color: oklch(81.9% 0.137 107.7);
Tailwind
colors: {
  custom: {
    50: '#dfd98b',
    500: '#cdca57',
    950: '#000000',
  },
}
SCSS
$custom: #cdca57;
$custom-light: #dfd98b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca57",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 87
  },
  "hsl": {
    "h": 58.475,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81908,
    "c": 0.13679,
    "h": 107.7
  },
  "luminance": 0.55908
}

Semantic roles & 50–950 ramp

primary
#CDCA57
secondary
#3E408A
accent
#4EDD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDCA57

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

Preview Lab → · Contrast checker → · Palette generator →

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