#D5C251#D5C251

#D5C251 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.134 H 99.8°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#D5C251
RGBrgb(213, 194, 81)
HSLhsl(51, 61%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 8.9%, 62%, 16.5%)
CIE-LABlab(78.07, -6.68, 57.67)
CIE-LCHlch(78.07, 58.06, 96.61°)
OKLaboklab(80.86% -0.0227 0.1319)
OKLCHoklch(80.86% 0.134 99.8)
XYZxyz(48.2195, 53.3259, 15.5360)
Luminance0.5332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C251 #5164D5
analogous
#D58051 #D5C251 #A6D551
triadic
#D5C251 #51D5C2 #C251D5
tetradic
#D5C251 #51D580 #5164D5 #D551A6
square
#D5C251 #51D580 #5164D5 #D551A6
split-complementary
#D5C251 #51A6D5 #8051D5
monochromatic
#8A7B21 #BCA72D #D5C251 #E1D382 #EDE5B4

Accessibility & contrast

On white

1.80
#D5C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#D5C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C251
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C251#FFFFFF#000000##000000
##D5C2511.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E4B5AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d5c251;
/* rgb */ color: rgb(213, 194, 81);
/* oklch */ color: oklch(80.9% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#e5d486',
    500: '#d5c251',
    950: '#000000',
  },
}
SCSS
$custom: #d5c251;
$custom-light: #e5d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c251",
  "rgb": {
    "r": 213,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 51.364,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80865,
    "c": 0.13384,
    "h": 99.8
  },
  "luminance": 0.53324
}

Semantic roles & 50–950 ramp

primary
#D5C251
secondary
#3A4690
accent
#5BE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D5C251

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

Preview Lab → · Contrast checker → · Palette generator →

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