#D2B042#D2B042

#D2B042 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.7% C 0.132 H 91.6°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#D2B042
RGBrgb(210, 176, 66)
HSLhsl(46, 62%, 54%)
HSVhsv(46, 69%, 82%)
CMYKcmyk(0%, 16.2%, 68.6%, 17.6%)
CIE-LABlab(72.99, 0.53, 58.62)
CIE-LCHlch(72.99, 58.63, 89.48°)
OKLaboklab(76.74% -0.0036 0.1317)
OKLCHoklch(76.74% 0.132 91.6)
XYZxyz(43.0893, 45.1481, 11.5981)
Luminance0.4515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B042 #4264D2
analogous
#D26842 #D2B042 #ACD242
triadic
#D2B042 #42D2B0 #B042D2
tetradic
#D2B042 #42D268 #4264D2 #D242AC
square
#D2B042 #42D268 #4264D2 #D242AC
split-complementary
#D2B042 #42ACD2 #6842D2
monochromatic
#7C661E #AD8E29 #D2B042 #DEC573 #EAD9A5

Accessibility & contrast

On white

2.09
#D2B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#D2B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B042
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B042#FFFFFF#000000##000000
##D2B0421.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD34
Deuteranopia (green-blind)
#CBB747
Tritanopia (blue-blind)
#E3A299
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d2b042;
/* rgb */ color: rgb(210, 176, 66);
/* oklch */ color: oklch(76.7% 0.132 91.6);
Tailwind
colors: {
  custom: {
    50: '#e4c77c',
    500: '#d2b042',
    950: '#000000',
  },
}
SCSS
$custom: #d2b042;
$custom-light: #e4c77c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b042",
  "rgb": {
    "r": 210,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 45.833,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76743,
    "c": 0.13171,
    "h": 91.6
  },
  "luminance": 0.45146
}

Semantic roles & 50–950 ramp

primary
#D2B042
secondary
#99A8D7
accent
#69E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B042

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

Preview Lab → · Contrast checker → · Palette generator →

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