#D1B951#D1B951

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

Color values

HEX#D1B951
RGBrgb(209, 185, 81)
HSLhsl(49, 58%, 57%)
HSVhsv(49, 61%, 82%)
CMYKcmyk(0%, 11.5%, 61.2%, 18%)
CIE-LABlab(75.36, -3.71, 54.60)
CIE-LCHlch(75.36, 54.73, 93.89°)
OKLaboklab(78.63% -0.014 0.1255)
OKLCHoklch(78.63% 0.126 96.3)
XYZxyz(45.1306, 48.8494, 14.8347)
Luminance0.4885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B951 #5169D1
analogous
#D17951 #D1B951 #A9D151
triadic
#D1B951 #51D1B9 #B951D1
tetradic
#D1B951 #51D179 #5169D1 #D151A9
square
#D1B951 #51D179 #5169D1 #D151A9
split-complementary
#D1B951 #51A9D1 #7951D1
monochromatic
#857223 #B59C30 #D1B951 #DECC81 #EBE0B2

Accessibility & contrast

On white

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

On black

10.77
#D1B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B951
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B951#FFFFFF#000000##000000
##D1B9511.001.9510.7710.77
#FFFFFF1.951.0021.0021.00
#00000010.7721.001.001.00
##00000010.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB546
Deuteranopia (green-blind)
#D0BD56
Tritanopia (blue-blind)
#E0ACA2
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d1b951;
/* rgb */ color: rgb(209, 185, 81);
/* oklch */ color: oklch(78.6% 0.126 96.3);
Tailwind
colors: {
  custom: {
    50: '#e2cd86',
    500: '#d1b951',
    950: '#000000',
  },
}
SCSS
$custom: #d1b951;
$custom-light: #e2cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b951",
  "rgb": {
    "r": 209,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 48.75,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.78634,
    "c": 0.12622,
    "h": 96.3
  },
  "luminance": 0.48847
}

Semantic roles & 50–950 ramp

primary
#D1B951
secondary
#A5AFD9
accent
#63E146
background
#FEFCF8
surface
#FCF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D1B951

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

Preview Lab → · Contrast checker → · Palette generator →

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