#D4D951#D4D951

#D4D951 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.6% C 0.156 H 111.3°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#D4D951
RGBrgb(212, 217, 81)
HSLhsl(62, 64%, 58%)
HSVhsv(62, 63%, 85%)
CMYKcmyk(2.3%, 0%, 62.7%, 14.9%)
CIE-LABlab(84.08, -18.67, 64.10)
CIE-LCHlch(84.08, 66.76, 106.24°)
OKLaboklab(85.63% -0.0567 0.1455)
OKLCHoklch(85.63% 0.156 111.3)
XYZxyz(53.4510, 64.2181, 17.3627)
Luminance0.6422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D951 #5651D9
analogous
#D99A51 #D4D951 #90D951
triadic
#D4D951 #51D4D9 #D951D4
tetradic
#D4D951 #51D99A #5651D9 #D95190
square
#D4D951 #51D99A #5651D9 #D95190
split-complementary
#D4D951 #5190D9 #9A51D9
monochromatic
#8C901F #BDC22A #D4D951 #E0E483 #EDEFB5

Accessibility & contrast

On white

1.52
#D4D951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#D4D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D951
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D951#FFFFFF#000000##000000
##D4D9511.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D040
Deuteranopia (green-blind)
#EAD45A
Tritanopia (blue-blind)
#E2CCBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d4d951;
/* rgb */ color: rgb(212, 217, 81);
/* oklch */ color: oklch(85.6% 0.156 111.3);
Tailwind
colors: {
  custom: {
    50: '#e4e488',
    500: '#d4d951',
    950: '#000000',
  },
}
SCSS
$custom: #d4d951;
$custom-light: #e4e488;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d951",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 62.206,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85632,
    "c": 0.15616,
    "h": 111.3
  },
  "luminance": 0.64217
}

Semantic roles & 50–950 ramp

primary
#D4D951
secondary
#3C3995
accent
#41E747
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D951

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

Preview Lab → · Contrast checker → · Palette generator →

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