#D7D251#D7D251

#D7D251 is a very light, vivid yellow. Relative luminance 0.611; OKLCH L 84.4% C 0.148 H 107.1°. Best body text is #000000 at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#D7D251
RGBrgb(215, 210, 81)
HSLhsl(58, 63%, 58%)
HSVhsv(58, 62%, 84%)
CMYKcmyk(0%, 2.3%, 62.3%, 15.7%)
CIE-LABlab(82.45, -13.97, 62.44)
CIE-LCHlch(82.45, 63.98, 102.61°)
OKLaboklab(84.39% -0.0436 0.1419)
OKLCHoklch(84.39% 0.148 107.1)
XYZxyz(52.5579, 61.1360, 16.8149)
Luminance0.6113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D251 #5156D7
analogous
#D78F51 #D7D251 #99D751
triadic
#D7D251 #51D7D2 #D251D7
tetradic
#D7D251 #51D78F #5156D7 #D75199
square
#D7D251 #51D78F #5156D7 #D75199
split-complementary
#D7D251 #5199D7 #8F51D7
monochromatic
#8D8920 #BFB92C #D7D251 #E2DF83 #EEECB5

Accessibility & contrast

On white

1.59
#D7D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.23
#D7D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D251
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D251#FFFFFF#000000##000000
##D7D2511.001.5913.2313.23
#FFFFFF1.591.0021.0021.00
#00000013.2321.001.001.00
##00000013.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA41
Deuteranopia (green-blind)
#E5D059
Tritanopia (blue-blind)
#E6C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d251;
/* rgb */ color: rgb(215, 210, 81);
/* oklch */ color: oklch(84.4% 0.148 107.1);
Tailwind
colors: {
  custom: {
    50: '#e6df88',
    500: '#d7d251',
    950: '#000000',
  },
}
SCSS
$custom: #d7d251;
$custom-light: #e6df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d251",
  "rgb": {
    "r": 215,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 57.761,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.84391,
    "c": 0.14848,
    "h": 107.1
  },
  "luminance": 0.61134
}

Semantic roles & 50–950 ramp

primary
#D7D251
secondary
#393D93
accent
#48E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D251

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

Preview Lab → · Contrast checker → · Palette generator →

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