#D7D52E#D7D52E

#D7D52E is a very light, vivid yellow. Relative luminance 0.622; OKLCH L 84.8% C 0.173 H 108.8°. Best body text is #000000 at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#D7D52E
RGBrgb(215, 213, 46)
HSLhsl(59, 68%, 51%)
HSVhsv(59, 79%, 84%)
CMYKcmyk(0%, 0.9%, 78.6%, 15.7%)
CIE-LABlab(83.04, -17.13, 75.29)
CIE-LCHlch(83.04, 77.21, 102.82°)
OKLaboklab(84.79% -0.0557 0.1633)
OKLCHoklch(84.79% 0.173 108.8)
XYZxyz(52.3138, 62.2345, 11.8410)
Luminance0.6223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D52E #2E30D7
analogous
#D7802E #D7D52E #84D72E
triadic
#D7D52E #2ED7D5 #D52ED7
tetradic
#D7D52E #2ED780 #2E30D7 #D72E84
square
#D7D52E #2ED780 #2E30D7 #D72E84
split-complementary
#D7D52E #2E84D7 #802ED7
monochromatic
#747316 #A8A620 #D7D52E #E1DF61 #EBEA95

Accessibility & contrast

On white

1.56
#D7D52E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.45
#D7D52E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D52E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D52E#FFFFFF#000000##000000
##D7D52E1.001.5613.4513.45
#FFFFFF1.561.0021.0021.00
#00000013.4521.001.001.00
##00000013.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CC00
Deuteranopia (green-blind)
#E9D13D
Tritanopia (blue-blind)
#E7C7B7
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d7d52e;
/* rgb */ color: rgb(215, 213, 46);
/* oklch */ color: oklch(84.8% 0.173 108.8);
Tailwind
colors: {
  custom: {
    50: '#e8e176',
    500: '#d7d52e',
    950: '#000000',
  },
}
SCSS
$custom: #d7d52e;
$custom-light: #e8e176;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d52e",
  "rgb": {
    "r": 215,
    "g": 213,
    "b": 46
  },
  "hsl": {
    "h": 59.29,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.84791,
    "c": 0.17251,
    "h": 108.8
  },
  "luminance": 0.62233
}

Semantic roles & 50–950 ramp

primary
#D7D52E
secondary
#2C2D7D
accent
#3FEB3D
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D7D52E

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

Preview Lab → · Contrast checker → · Palette generator →

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