#D7D252#D7D252

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

Color values

HEX#D7D252
RGBrgb(215, 210, 82)
HSLhsl(58, 62%, 58%)
HSVhsv(58, 62%, 84%)
CMYKcmyk(0%, 2.3%, 61.9%, 15.7%)
CIE-LABlab(82.46, -13.90, 62.03)
CIE-LCHlch(82.46, 63.57, 102.63°)
OKLaboklab(84.4% -0.0433 0.1412)
OKLCHoklch(84.4% 0.148 107)
XYZxyz(52.5957, 61.1511, 17.0138)
Luminance0.6115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D252 #5257D7
analogous
#D78F52 #D7D252 #9AD752
triadic
#D7D252 #52D7D2 #D252D7
tetradic
#D7D252 #52D78F #5257D7 #D7529A
square
#D7D252 #52D78F #5257D7 #D7529A
split-complementary
#D7D252 #529AD7 #8F52D7
monochromatic
#8E8A21 #C0BA2C #D7D252 #E2DF84 #EEECB5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7D252#FFFFFF#000000##000000
##D7D2521.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)
#E3CA42
Deuteranopia (green-blind)
#E5D05A
Tritanopia (blue-blind)
#E6C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d252;
/* rgb */ color: rgb(215, 210, 82);
/* oklch */ color: oklch(84.4% 0.148 107.0);
Tailwind
colors: {
  custom: {
    50: '#e6df88',
    500: '#d7d252',
    950: '#000000',
  },
}
SCSS
$custom: #d7d252;
$custom-light: #e6df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d252",
  "rgb": {
    "r": 215,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 57.744,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.844,
    "c": 0.14771,
    "h": 107
  },
  "luminance": 0.61149
}

Semantic roles & 50–950 ramp

primary
#D7D252
secondary
#3A3D93
accent
#48E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D252

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

Preview Lab → · Contrast checker → · Palette generator →

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