#D1C151#D1C151

#D1C151 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.133 H 101.2°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#D1C151
RGBrgb(209, 193, 81)
HSLhsl(53, 58%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 7.7%, 61.2%, 18%)
CIE-LABlab(77.45, -7.85, 56.91)
CIE-LCHlch(77.45, 57.45, 97.86°)
OKLaboklab(80.3% -0.0258 0.1304)
OKLCHoklch(80.3% 0.133 101.2)
XYZxyz(46.8515, 52.2912, 15.4083)
Luminance0.5229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C151 #5161D1
analogous
#D18151 #D1C151 #A1D151
triadic
#D1C151 #51D1C1 #C151D1
tetradic
#D1C151 #51D181 #5161D1 #D151A1
square
#D1C151 #51D181 #5161D1 #D151A1
split-complementary
#D1C151 #51A1D1 #8151D1
monochromatic
#857823 #B5A430 #D1C151 #DED281 #EBE3B2

Accessibility & contrast

On white

1.83
#D1C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#D1C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C151
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C151#FFFFFF#000000##000000
##D1C1511.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#E0B4A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d1c151;
/* rgb */ color: rgb(209, 193, 81);
/* oklch */ color: oklch(80.3% 0.133 101.2);
Tailwind
colors: {
  custom: {
    50: '#e2d386',
    500: '#d1c151',
    950: '#000000',
  },
}
SCSS
$custom: #d1c151;
$custom-light: #e2d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c151",
  "rgb": {
    "r": 209,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 52.5,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80296,
    "c": 0.1329,
    "h": 101.2
  },
  "luminance": 0.52289
}

Semantic roles & 50–950 ramp

primary
#D1C151
secondary
#3B458B
accent
#5AE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C151

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

Preview Lab → · Contrast checker → · Palette generator →

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