#D2CB40#D2CB40

#D2CB40 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.3% C 0.154 H 106.5°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#D2CB40
RGBrgb(210, 203, 64)
HSLhsl(57, 62%, 54%)
HSVhsv(57, 70%, 82%)
CMYKcmyk(0%, 3.3%, 69.5%, 17.6%)
CIE-LABlab(80.06, -13.51, 66.54)
CIE-LCHlch(80.06, 67.90, 101.47°)
OKLaboklab(82.35% -0.0438 0.1481)
OKLCHoklch(82.35% 0.154 106.5)
XYZxyz(48.8616, 56.7854, 13.2364)
Luminance0.5678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CB40 #4047D2
analogous
#D28240 #D2CB40 #90D240
triadic
#D2CB40 #40D2CB #CB40D2
tetradic
#D2CB40 #40D282 #4047D2 #D24090
square
#D2CB40 #40D282 #4047D2 #D24090
split-complementary
#D2CB40 #4090D2 #8240D2
monochromatic
#7B761D #ACA629 #D2CB40 #DED872 #E9E6A3

Accessibility & contrast

On white

1.70
#D2CB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#D2CB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CB40
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CB40#FFFFFF#000000##000000
##D2CB401.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC32A
Deuteranopia (green-blind)
#DFC94A
Tritanopia (blue-blind)
#E1BEB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2cb40;
/* rgb */ color: rgb(210, 203, 64);
/* oklch */ color: oklch(82.3% 0.154 106.5);
Tailwind
colors: {
  custom: {
    50: '#e3da7d',
    500: '#d2cb40',
    950: '#000000',
  },
}
SCSS
$custom: #d2cb40;
$custom-light: #e3da7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cb40",
  "rgb": {
    "r": 210,
    "g": 203,
    "b": 64
  },
  "hsl": {
    "h": 57.123,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.82345,
    "c": 0.15439,
    "h": 106.5
  },
  "luminance": 0.56784
}

Semantic roles & 50–950 ramp

primary
#D2CB40
secondary
#343783
accent
#4BE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2CB40

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

Preview Lab → · Contrast checker → · Palette generator →

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