#D5B951#D5B951

#D5B951 is a light, vivid yellow. Relative luminance 0.494; OKLCH L 79.0% C 0.127 H 94.2°. Best body text is #000000 at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#D5B951
RGBrgb(213, 185, 81)
HSLhsl(47, 61%, 58%)
HSVhsv(47, 62%, 84%)
CMYKcmyk(0%, 13.1%, 62%, 16.5%)
CIE-LABlab(75.72, -2.02, 55.11)
CIE-LCHlch(75.72, 55.15, 92.09°)
OKLaboklab(79.01% -0.0093 0.1264)
OKLCHoklch(79.01% 0.127 94.2)
XYZxyz(46.2768, 49.4405, 14.8884)
Luminance0.4944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B951 #516DD5
analogous
#D57751 #D5B951 #AFD551
triadic
#D5B951 #51D5B9 #B951D5
tetradic
#D5B951 #51D577 #516DD5 #D551AF
square
#D5B951 #51D577 #516DD5 #D551AF
split-complementary
#D5B951 #51AFD5 #7751D5
monochromatic
#8A7421 #BC9D2D #D5B951 #E1CD82 #EDE1B4

Accessibility & contrast

On white

1.93
#D5B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.89
#D5B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B951
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B951#FFFFFF#000000##000000
##D5B9511.001.9310.8910.89
#FFFFFF1.931.0021.0021.00
#00000010.8921.001.001.00
##00000010.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#D2BE56
Tritanopia (blue-blind)
#E5ACA2
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d5b951;
/* rgb */ color: rgb(213, 185, 81);
/* oklch */ color: oklch(79.0% 0.127 94.2);
Tailwind
colors: {
  custom: {
    50: '#e5cd86',
    500: '#d5b951',
    950: '#000000',
  },
}
SCSS
$custom: #d5b951;
$custom-light: #e5cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b951",
  "rgb": {
    "r": 213,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 47.273,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.7901,
    "c": 0.12677,
    "h": 94.2
  },
  "luminance": 0.49438
}

Semantic roles & 50–950 ramp

primary
#D5B951
secondary
#A6B2DB
accent
#66E444
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D5B951

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

Preview Lab → · Contrast checker → · Palette generator →

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