#D2B540#D2B540

#D2B540 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.7% C 0.136 H 94.9°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#D2B540
RGBrgb(210, 181, 64)
HSLhsl(48, 62%, 54%)
HSVhsv(48, 70%, 82%)
CMYKcmyk(0%, 13.8%, 69.5%, 17.6%)
CIE-LABlab(74.27, -2.21, 60.75)
CIE-LCHlch(74.27, 60.79, 92.08°)
OKLaboklab(77.75% -0.0117 0.1358)
OKLCHoklch(77.75% 0.136 94.9)
XYZxyz(44.0298, 47.1219, 11.6258)
Luminance0.4712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B540 #405DD2
analogous
#D26C40 #D2B540 #A6D240
triadic
#D2B540 #40D2B5 #B540D2
tetradic
#D2B540 #40D26C #405DD2 #D240A6
square
#D2B540 #40D26C #405DD2 #D240A6
split-complementary
#D2B540 #40A6D2 #6C40D2
monochromatic
#7B681D #AC9229 #D2B540 #DEC872 #E9DBA3

Accessibility & contrast

On white

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

On black

10.42
#D2B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B540
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B540#FFFFFF#000000##000000
##D2B5401.002.0110.4210.42
#FFFFFF2.011.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B130
Deuteranopia (green-blind)
#CFBA46
Tritanopia (blue-blind)
#E3A79D
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d2b540;
/* rgb */ color: rgb(210, 181, 64);
/* oklch */ color: oklch(77.7% 0.136 94.9);
Tailwind
colors: {
  custom: {
    50: '#e4ca7b',
    500: '#d2b540',
    950: '#000000',
  },
}
SCSS
$custom: #d2b540;
$custom-light: #e4ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b540",
  "rgb": {
    "r": 210,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 48.082,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77748,
    "c": 0.13632,
    "h": 94.9
  },
  "luminance": 0.4712
}

Semantic roles & 50–950 ramp

primary
#D2B540
secondary
#98A4D6
accent
#63E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B540

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

Preview Lab → · Contrast checker → · Palette generator →

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