#D7D952#D7D952

#D7D952 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.155 H 110.1°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#D7D952
RGBrgb(215, 217, 82)
HSLhsl(61, 64%, 59%)
HSVhsv(61, 62%, 85%)
CMYKcmyk(0.9%, 0%, 62.2%, 14.9%)
CIE-LABlab(84.32, -17.38, 64.01)
CIE-LCHlch(84.32, 66.33, 105.19°)
OKLaboklab(85.88% -0.0531 0.1454)
OKLCHoklch(85.88% 0.155 110.1)
XYZxyz(54.3618, 64.6834, 17.6025)
Luminance0.6468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D952 #5452D9
analogous
#D99752 #D7D952 #93D952
triadic
#D7D952 #52D7D9 #D952D7
tetradic
#D7D952 #52D997 #5452D9 #D95293
square
#D7D952 #52D997 #5452D9 #D95293
split-complementary
#D7D952 #5293D9 #9752D9
monochromatic
#8F9120 #C1C32B #D7D952 #E3E484 #EEEFB6

Accessibility & contrast

On white

1.51
#D7D952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.94
#D7D952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D952
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D952#FFFFFF#000000##000000
##D7D9521.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D041
Deuteranopia (green-blind)
#EBD45B
Tritanopia (blue-blind)
#E5CCBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d952;
/* rgb */ color: rgb(215, 217, 82);
/* oklch */ color: oklch(85.9% 0.155 110.1);
Tailwind
colors: {
  custom: {
    50: '#e6e489',
    500: '#d7d952',
    950: '#000000',
  },
}
SCSS
$custom: #d7d952;
$custom-light: #e6e489;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d952",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 82
  },
  "hsl": {
    "h": 60.889,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.85884,
    "c": 0.15481,
    "h": 110.1
  },
  "luminance": 0.64682
}

Semantic roles & 50–950 ramp

primary
#D7D952
secondary
#3B3996
accent
#41E743
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D952

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

Preview Lab → · Contrast checker → · Palette generator →

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