#D1C251#D1C251

#D1C251 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.5% C 0.134 H 101.8°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D1C251
RGBrgb(209, 194, 81)
HSLhsl(53, 58%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 7.2%, 61.2%, 18%)
CIE-LABlab(77.72, -8.36, 57.19)
CIE-LCHlch(77.72, 57.80, 98.32°)
OKLaboklab(80.51% -0.0273 0.131)
OKLCHoklch(80.51% 0.134 101.8)
XYZxyz(47.0733, 52.7348, 15.4822)
Luminance0.5273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C251 #5160D1
analogous
#D18251 #D1C251 #A0D151
triadic
#D1C251 #51D1C2 #C251D1
tetradic
#D1C251 #51D182 #5160D1 #D151A0
square
#D1C251 #51D182 #5160D1 #D151A0
split-complementary
#D1C251 #51A0D1 #8251D1
monochromatic
#857923 #B5A530 #D1C251 #DED381 #EBE4B2

Accessibility & contrast

On white

1.82
#D1C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#D1C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C251
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C251#FFFFFF#000000##000000
##D1C2511.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC44
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#E0B5AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d1c251;
/* rgb */ color: rgb(209, 194, 81);
/* oklch */ color: oklch(80.5% 0.134 101.8);
Tailwind
colors: {
  custom: {
    50: '#e2d486',
    500: '#d1c251',
    950: '#000000',
  },
}
SCSS
$custom: #d1c251;
$custom-light: #e2d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c251",
  "rgb": {
    "r": 209,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 52.969,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80505,
    "c": 0.13379,
    "h": 101.8
  },
  "luminance": 0.52733
}

Semantic roles & 50–950 ramp

primary
#D1C251
secondary
#3B448B
accent
#59E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C251

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

Preview Lab → · Contrast checker → · Palette generator →

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