#D2C04B#D2C04B

#D2C04B is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.137 H 100.5°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#D2C04B
RGBrgb(210, 192, 75)
HSLhsl(52, 60%, 56%)
HSVhsv(52, 64%, 82%)
CMYKcmyk(0%, 8.6%, 64.3%, 17.6%)
CIE-LABlab(77.23, -7.30, 59.28)
CIE-LCHlch(77.23, 59.72, 97.02°)
OKLaboklab(80.12% -0.025 0.1345)
OKLCHoklch(80.12% 0.137 100.5)
XYZxyz(46.6999, 51.9109, 14.2152)
Luminance0.5191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C04B #4B5DD2
analogous
#D27C4B #D2C04B #A0D24B
triadic
#D2C04B #4BD2C0 #C04BD2
tetradic
#D2C04B #4BD27C #4B5DD2 #D24BA0
square
#D2C04B #4BD27C #4B5DD2 #D24BA0
split-complementary
#D2C04B #4BA0D2 #7C4BD2
monochromatic
#827521 #B3A12D #D2C04B #DED17C #EAE2AD

Accessibility & contrast

On white

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

On black

11.38
#D2C04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C04B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C04B#FFFFFF#000000##000000
##D2C04B1.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3D
Deuteranopia (green-blind)
#D6C251
Tritanopia (blue-blind)
#E1B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c04b;
/* rgb */ color: rgb(210, 192, 75);
/* oklch */ color: oklch(80.1% 0.137 100.5);
Tailwind
colors: {
  custom: {
    50: '#e3d283',
    500: '#d2c04b',
    950: '#000000',
  },
}
SCSS
$custom: #d2c04b;
$custom-light: #e3d283;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c04b",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 52,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.8012,
    "c": 0.1368,
    "h": 100.5
  },
  "luminance": 0.51909
}

Semantic roles & 50–950 ramp

primary
#D2C04B
secondary
#384389
accent
#5AE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C04B

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

Preview Lab → · Contrast checker → · Palette generator →

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