#D1C451#D1C451

#D1C451 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.9% C 0.136 H 102.9°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#D1C451
RGBrgb(209, 196, 81)
HSLhsl(54, 58%, 57%)
HSVhsv(54, 61%, 82%)
CMYKcmyk(0%, 6.2%, 61.2%, 18%)
CIE-LABlab(78.25, -9.39, 57.77)
CIE-LCHlch(78.25, 58.53, 99.23°)
OKLaboklab(80.92% -0.0302 0.1322)
OKLCHoklch(80.92% 0.136 102.9)
XYZxyz(47.5214, 53.6310, 15.6316)
Luminance0.5363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C451 #515ED1
analogous
#D18451 #D1C451 #9ED151
triadic
#D1C451 #51D1C4 #C451D1
tetradic
#D1C451 #51D184 #515ED1 #D1519E
square
#D1C451 #51D184 #515ED1 #D1519E
split-complementary
#D1C451 #519ED1 #8451D1
monochromatic
#857B23 #B5A730 #D1C451 #DED481 #EBE5B2

Accessibility & contrast

On white

1.79
#D1C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#D1C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C451
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C451#FFFFFF#000000##000000
##D1C4511.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE44
Deuteranopia (green-blind)
#D9C457
Tritanopia (blue-blind)
#E0B7AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d1c451;
/* rgb */ color: rgb(209, 196, 81);
/* oklch */ color: oklch(80.9% 0.136 102.9);
Tailwind
colors: {
  custom: {
    50: '#e2d586',
    500: '#d1c451',
    950: '#000000',
  },
}
SCSS
$custom: #d1c451;
$custom-light: #e2d586;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c451",
  "rgb": {
    "r": 209,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 53.906,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80924,
    "c": 0.1356,
    "h": 102.9
  },
  "luminance": 0.53629
}

Semantic roles & 50–950 ramp

primary
#D1C451
secondary
#3B438B
accent
#56E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C451

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

Preview Lab → · Contrast checker → · Palette generator →

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