#D2B940#D2B940

#D2B940 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.6% C 0.139 H 97.3°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#D2B940
RGBrgb(210, 185, 64)
HSLhsl(50, 62%, 54%)
HSVhsv(50, 70%, 82%)
CMYKcmyk(0%, 11.9%, 69.5%, 17.6%)
CIE-LABlab(75.31, -4.30, 61.81)
CIE-LCHlch(75.31, 61.95, 93.98°)
OKLaboklab(78.57% -0.0177 0.1381)
OKLCHoklch(78.57% 0.139 97.3)
XYZxyz(44.8549, 48.7720, 11.9008)
Luminance0.4877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B940 #4059D2
analogous
#D27040 #D2B940 #A2D240
triadic
#D2B940 #40D2B9 #B940D2
tetradic
#D2B940 #40D270 #4059D2 #D240A2
square
#D2B940 #40D270 #4059D2 #D240A2
split-complementary
#D2B940 #40A2D2 #7040D2
monochromatic
#7B6B1D #AC9629 #D2B940 #DECB72 #E9DDA3

Accessibility & contrast

On white

1.95
#D2B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.75
#D2B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B940
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B940#FFFFFF#000000##000000
##D2B9401.001.9510.7510.75
#FFFFFF1.951.0021.0021.00
#00000010.7521.001.001.00
##00000010.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB52F
Deuteranopia (green-blind)
#D2BD47
Tritanopia (blue-blind)
#E2ABA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d2b940;
/* rgb */ color: rgb(210, 185, 64);
/* oklch */ color: oklch(78.6% 0.139 97.3);
Tailwind
colors: {
  custom: {
    50: '#e4cd7c',
    500: '#d2b940',
    950: '#000000',
  },
}
SCSS
$custom: #d2b940;
$custom-light: #e4cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b940",
  "rgb": {
    "r": 210,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 49.726,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.78572,
    "c": 0.13918,
    "h": 97.3
  },
  "luminance": 0.4877
}

Semantic roles & 50–950 ramp

primary
#D2B940
secondary
#98A2D6
accent
#5FE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B940

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

Preview Lab → · Contrast checker → · Palette generator →

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