#D5C151#D5C151

#D5C151 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.7% C 0.133 H 99.2°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#D5C151
RGBrgb(213, 193, 81)
HSLhsl(51, 61%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 9.4%, 62%, 16.5%)
CIE-LABlab(77.81, -6.17, 57.39)
CIE-LCHlch(77.81, 57.72, 96.13°)
OKLaboklab(80.66% -0.0213 0.1313)
OKLCHoklch(80.66% 0.133 99.2)
XYZxyz(47.9977, 52.8822, 15.4620)
Luminance0.5288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C151 #5165D5
analogous
#D57F51 #D5C151 #A7D551
triadic
#D5C151 #51D5C1 #C151D5
tetradic
#D5C151 #51D57F #5165D5 #D551A7
square
#D5C151 #51D57F #5165D5 #D551A7
split-complementary
#D5C151 #51A7D5 #7F51D5
monochromatic
#8A7A21 #BCA62D #D5C151 #E1D382 #EDE4B4

Accessibility & contrast

On white

1.81
#D5C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#D5C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C151
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C151#FFFFFF#000000##000000
##D5C1511.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E5B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d5c151;
/* rgb */ color: rgb(213, 193, 81);
/* oklch */ color: oklch(80.7% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#e5d386',
    500: '#d5c151',
    950: '#000000',
  },
}
SCSS
$custom: #d5c151;
$custom-light: #e5d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c151",
  "rgb": {
    "r": 213,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 50.909,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80657,
    "c": 0.13299,
    "h": 99.2
  },
  "luminance": 0.5288
}

Semantic roles & 50–950 ramp

primary
#D5C151
secondary
#3A4790
accent
#5CE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D5C151

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

Preview Lab → · Contrast checker → · Palette generator →

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