#D1CD51#D1CD51

#D1CD51 is a very light, vivid yellow. Relative luminance 0.578; OKLCH L 82.8% C 0.144 H 107.4°. Best body text is #000000 at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#D1CD51
RGBrgb(209, 205, 81)
HSLhsl(58, 58%, 57%)
HSVhsv(58, 61%, 82%)
CMYKcmyk(0%, 1.9%, 61.2%, 18%)
CIE-LABlab(80.64, -13.95, 60.35)
CIE-LCHlch(80.64, 61.95, 103.01°)
OKLaboklab(82.83% -0.0432 0.1377)
OKLCHoklch(82.83% 0.144 107.4)
XYZxyz(49.6126, 57.8136, 16.3287)
Luminance0.5781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CD51 #5155D1
analogous
#D18D51 #D1CD51 #95D151
triadic
#D1CD51 #51D1CD #CD51D1
tetradic
#D1CD51 #51D18D #5155D1 #D15195
square
#D1CD51 #51D18D #5155D1 #D15195
split-complementary
#D1CD51 #5195D1 #8D51D1
monochromatic
#858223 #B5B130 #D1CD51 #DEDB81 #EBE9B2

Accessibility & contrast

On white

1.67
#D1CD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.56
#D1CD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CD51
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CD51#FFFFFF#000000##000000
##D1CD511.001.6712.5612.56
#FFFFFF1.671.0021.0021.00
#00000012.5621.001.001.00
##00000012.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC542
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#DFC1B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d1cd51;
/* rgb */ color: rgb(209, 205, 81);
/* oklch */ color: oklch(82.8% 0.144 107.4);
Tailwind
colors: {
  custom: {
    50: '#e2dc87',
    500: '#d1cd51',
    950: '#000000',
  },
}
SCSS
$custom: #d1cd51;
$custom-light: #e2dc87;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cd51",
  "rgb": {
    "r": 209,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 58.125,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.82825,
    "c": 0.14428,
    "h": 107.4
  },
  "luminance": 0.57812
}

Semantic roles & 50–950 ramp

primary
#D1CD51
secondary
#3B3D8B
accent
#4BE146
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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