#D2B542#D2B542

#D2B542 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.8% C 0.135 H 94.8°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#D2B542
RGBrgb(210, 181, 66)
HSLhsl(48, 62%, 54%)
HSVhsv(48, 69%, 82%)
CMYKcmyk(0%, 13.8%, 68.6%, 17.6%)
CIE-LABlab(74.28, -2.10, 59.95)
CIE-LCHlch(74.28, 59.99, 92.01°)
OKLaboklab(77.76% -0.0112 0.1345)
OKLCHoklch(77.76% 0.135 94.8)
XYZxyz(44.0878, 47.1451, 11.9309)
Luminance0.4714 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B542 #425FD2
analogous
#D26D42 #D2B542 #A7D242
triadic
#D2B542 #42D2B5 #B542D2
tetradic
#D2B542 #42D26D #425FD2 #D242A7
square
#D2B542 #42D26D #425FD2 #D242A7
split-complementary
#D2B542 #42A7D2 #6D42D2
monochromatic
#7C691E #AD9329 #D2B542 #DEC873 #EADCA5

Accessibility & contrast

On white

2.01
#D2B542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#D2B542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B542
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B542#FFFFFF#000000##000000
##D2B5421.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B233
Deuteranopia (green-blind)
#CFBA48
Tritanopia (blue-blind)
#E2A79D
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d2b542;
/* rgb */ color: rgb(210, 181, 66);
/* oklch */ color: oklch(77.8% 0.135 94.8);
Tailwind
colors: {
  custom: {
    50: '#e3ca7c',
    500: '#d2b542',
    950: '#000000',
  },
}
SCSS
$custom: #d2b542;
$custom-light: #e3ca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b542",
  "rgb": {
    "r": 210,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 47.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77764,
    "c": 0.13494,
    "h": 94.8
  },
  "luminance": 0.47143
}

Semantic roles & 50–950 ramp

primary
#D2B542
secondary
#99A6D7
accent
#64E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B542

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

Preview Lab → · Contrast checker → · Palette generator →

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