#CDCA56#CDCA56

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

Color values

HEX#CDCA56
RGBrgb(205, 202, 86)
HSLhsl(58, 54%, 57%)
HSVhsv(58, 58%, 80%)
CMYKcmyk(0%, 1.5%, 58%, 19.6%)
CIE-LABlab(79.55, -13.75, 56.92)
CIE-LCHlch(79.55, 58.56, 103.59°)
OKLaboklab(81.9% -0.0418 0.1311)
OKLCHoklch(81.9% 0.138 107.7)
XYZxyz(47.9785, 55.8935, 17.0635)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA56 #5659CD
analogous
#CD8E56 #CDCA56 #95CD56
triadic
#CDCA56 #56CDCA #CA56CD
tetradic
#CDCA56 #56CD8E #5659CD #CD5695
square
#CDCA56 #56CD8E #5659CD #CD5695
split-complementary
#CDCA56 #5695CD #8E56CD
monochromatic
#828026 #B1AE34 #CDCA56 #DBD985 #E9E8B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDCA56#FFFFFF#000000##000000
##CDCA561.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)
#D9C349
Deuteranopia (green-blind)
#DBC75D
Tritanopia (blue-blind)
#DABEB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca56;
/* rgb */ color: rgb(205, 202, 86);
/* oklch */ color: oklch(81.9% 0.138 107.7);
Tailwind
colors: {
  custom: {
    50: '#dfd98a',
    500: '#cdca56',
    950: '#000000',
  },
}
SCSS
$custom: #cdca56;
$custom-light: #dfd98a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca56",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 86
  },
  "hsl": {
    "h": 58.487,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81898,
    "c": 0.13765,
    "h": 107.7
  },
  "luminance": 0.55892
}

Semantic roles & 50–950 ramp

primary
#CDCA56
secondary
#3E4089
accent
#4EDE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDCA56

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

Preview Lab → · Contrast checker → · Palette generator →

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