#D2CB3A#D2CB3A

#D2CB3A is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.3% C 0.158 H 106.6°. Best body text is #000000 at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#D2CB3A
RGBrgb(210, 203, 58)
HSLhsl(57, 63%, 53%)
HSVhsv(57, 72%, 82%)
CMYKcmyk(0%, 3.3%, 72.4%, 17.6%)
CIE-LABlab(80.02, -13.79, 68.65)
CIE-LCHlch(80.02, 70.02, 101.36°)
OKLaboklab(82.31% -0.0451 0.1515)
OKLCHoklch(82.31% 0.158 106.6)
XYZxyz(48.6999, 56.7207, 12.3851)
Luminance0.5672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CB3A #3A41D2
analogous
#D27F3A #D2CB3A #8DD23A
triadic
#D2CB3A #3AD2CB #CB3AD2
tetradic
#D2CB3A #3AD27F #3A41D2 #D23A8D
square
#D2CB3A #3AD27F #3A41D2 #D23A8D
split-complementary
#D2CB3A #3A8DD2 #7F3AD2
monochromatic
#77721B #A8A226 #D2CB3A #DDD86C #E9E59E

Accessibility & contrast

On white

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

On black

12.34
#D2CB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CB3A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CB3A#FFFFFF#000000##000000
##D2CB3A1.001.7012.3412.34
#FFFFFF1.701.0021.0021.00
#00000012.3421.001.001.00
##00000012.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC31E
Deuteranopia (green-blind)
#DFC945
Tritanopia (blue-blind)
#E1BDAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2cb3a;
/* rgb */ color: rgb(210, 203, 58);
/* oklch */ color: oklch(82.3% 0.158 106.6);
Tailwind
colors: {
  custom: {
    50: '#e4da7a',
    500: '#d2cb3a',
    950: '#000000',
  },
}
SCSS
$custom: #d2cb3a;
$custom-light: #e4da7a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cb3a",
  "rgb": {
    "r": 210,
    "g": 203,
    "b": 58
  },
  "hsl": {
    "h": 57.237,
    "s": 62.81,
    "l": 52.549
  },
  "oklch": {
    "l": 0.82305,
    "c": 0.15805,
    "h": 106.6
  },
  "luminance": 0.56719
}

Semantic roles & 50–950 ramp

primary
#D2CB3A
secondary
#31357F
accent
#49E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D2CB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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