#D1B151#D1B151

#D1B151 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 77.0% C 0.121 H 90.9°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#D1B151
RGBrgb(209, 177, 81)
HSLhsl(45, 58%, 57%)
HSVhsv(45, 61%, 82%)
CMYKcmyk(0%, 15.3%, 61.2%, 18%)
CIE-LABlab(73.28, 0.49, 52.29)
CIE-LCHlch(73.28, 52.29, 89.46°)
OKLaboklab(76.99% -0.0018 0.1205)
OKLCHoklch(76.99% 0.121 90.9)
XYZxyz(43.5039, 45.5960, 14.2924)
Luminance0.4559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B151 #5171D1
analogous
#D17151 #D1B151 #B1D151
triadic
#D1B151 #51D1B1 #B151D1
tetradic
#D1B151 #51D171 #5171D1 #D151B1
square
#D1B151 #51D171 #5171D1 #D151B1
split-complementary
#D1B151 #51B1D1 #7151D1
monochromatic
#856C23 #B59430 #D1B151 #DEC781 #EBDCB2

Accessibility & contrast

On white

2.08
#D1B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#D1B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B151
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B151#FFFFFF#000000##000000
##D1B1511.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF47
Deuteranopia (green-blind)
#CAB855
Tritanopia (blue-blind)
#E1A49C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d1b151;
/* rgb */ color: rgb(209, 177, 81);
/* oklch */ color: oklch(77.0% 0.121 90.9);
Tailwind
colors: {
  custom: {
    50: '#e2c885',
    500: '#d1b151',
    950: '#000000',
  },
}
SCSS
$custom: #d1b151;
$custom-light: #e2c885;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b151",
  "rgb": {
    "r": 209,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 45,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.76994,
    "c": 0.12053,
    "h": 90.9
  },
  "luminance": 0.45594
}

Semantic roles & 50–950 ramp

primary
#D1B151
secondary
#A5B2D9
accent
#6DE146
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D1B151

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

Preview Lab → · Contrast checker → · Palette generator →

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