#D2B040#D2B040

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

Color values

HEX#D2B040
RGBrgb(210, 176, 64)
HSLhsl(46, 62%, 54%)
HSVhsv(46, 70%, 82%)
CMYKcmyk(0%, 16.2%, 69.5%, 17.6%)
CIE-LABlab(72.97, 0.42, 59.44)
CIE-LCHlch(72.97, 59.44, 89.59°)
OKLaboklab(76.73% -0.0042 0.133)
OKLCHoklch(76.73% 0.133 91.8)
XYZxyz(43.0314, 45.1250, 11.2930)
Luminance0.4512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B040 #4062D2
analogous
#D26740 #D2B040 #ABD240
triadic
#D2B040 #40D2B0 #B040D2
tetradic
#D2B040 #40D267 #4062D2 #D240AB
square
#D2B040 #40D267 #4062D2 #D240AB
split-complementary
#D2B040 #40ABD2 #6740D2
monochromatic
#7B651D #AC8E29 #D2B040 #DEC472 #E9D9A3

Accessibility & contrast

On white

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

On black

10.02
#D2B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B040
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B040#FFFFFF#000000##000000
##D2B0401.002.0910.0210.02
#FFFFFF2.091.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2b040;
/* rgb */ color: rgb(210, 176, 64);
/* oklch */ color: oklch(76.7% 0.133 91.8);
Tailwind
colors: {
  custom: {
    50: '#e4c77b',
    500: '#d2b040',
    950: '#000000',
  },
}
SCSS
$custom: #d2b040;
$custom-light: #e4c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b040",
  "rgb": {
    "r": 210,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 46.027,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.76726,
    "c": 0.13311,
    "h": 91.8
  },
  "luminance": 0.45122
}

Semantic roles & 50–950 ramp

primary
#D2B040
secondary
#98A6D6
accent
#69E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B040

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

Preview Lab → · Contrast checker → · Palette generator →

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