#D1C851#D1C851

#D1C851 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.139 H 105.0°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D1C851
RGBrgb(209, 200, 81)
HSLhsl(56, 58%, 57%)
HSVhsv(56, 61%, 82%)
CMYKcmyk(0%, 4.3%, 61.2%, 18%)
CIE-LABlab(79.31, -11.43, 58.92)
CIE-LCHlch(79.31, 60.02, 100.97°)
OKLaboklab(81.77% -0.036 0.1346)
OKLCHoklch(81.77% 0.139 105)
XYZxyz(48.4357, 55.4596, 15.9364)
Luminance0.5546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C851 #515AD1
analogous
#D18851 #D1C851 #9AD151
triadic
#D1C851 #51D1C8 #C851D1
tetradic
#D1C851 #51D188 #515AD1 #D1519A
square
#D1C851 #51D188 #515AD1 #D1519A
split-complementary
#D1C851 #519AD1 #8851D1
monochromatic
#857E23 #B5AC30 #D1C851 #DED781 #EBE7B2

Accessibility & contrast

On white

1.74
#D1C851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D1C851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C851
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C851#FFFFFF#000000##000000
##D1C8511.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#DFBBAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c851;
/* rgb */ color: rgb(209, 200, 81);
/* oklch */ color: oklch(81.8% 0.139 105.0);
Tailwind
colors: {
  custom: {
    50: '#e2d887',
    500: '#d1c851',
    950: '#000000',
  },
}
SCSS
$custom: #d1c851;
$custom-light: #e2d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c851",
  "rgb": {
    "r": 209,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 55.781,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81766,
    "c": 0.13937,
    "h": 105
  },
  "luminance": 0.55458
}

Semantic roles & 50–950 ramp

primary
#D1C851
secondary
#3B408B
accent
#51E146
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1C851

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

Preview Lab → · Contrast checker → · Palette generator →

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