#D7DC52#D7DC52

#D7DC52 is a very light, vivid yellow. Relative luminance 0.662; OKLCH L 86.5% C 0.158 H 111.3°. Best body text is #000000 at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#D7DC52
RGBrgb(215, 220, 82)
HSLhsl(62, 66%, 59%)
HSVhsv(62, 63%, 86%)
CMYKcmyk(2.3%, 0%, 62.7%, 13.7%)
CIE-LABlab(85.12, -18.85, 64.86)
CIE-LCHlch(85.12, 67.54, 106.21°)
OKLaboklab(86.52% -0.0573 0.1472)
OKLCHoklch(86.52% 0.158 111.3)
XYZxyz(55.1421, 66.2440, 17.8626)
Luminance0.6624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7DC52 #5752DC
analogous
#DC9C52 #D7DC52 #92DC52
triadic
#D7DC52 #52D7DC #DC52D7
tetradic
#D7DC52 #52DC9C #5752DC #DC5292
square
#D7DC52 #52DC9C #5752DC #DC5292
split-complementary
#D7DC52 #5292DC #9C52DC
monochromatic
#91951E #C2C829 #D7DC52 #E3E685 #EFF1B8

Accessibility & contrast

On white

1.47
#D7DC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.25
#D7DC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7DC52
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7DC52#FFFFFF#000000##000000
##D7DC521.001.4714.2514.25
#FFFFFF1.471.0021.0021.00
#00000014.2521.001.001.00
##00000014.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD340
Deuteranopia (green-blind)
#EDD65B
Tritanopia (blue-blind)
#E5CFBF
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #d7dc52;
/* rgb */ color: rgb(215, 220, 82);
/* oklch */ color: oklch(86.5% 0.158 111.3);
Tailwind
colors: {
  custom: {
    50: '#e6e689',
    500: '#d7dc52',
    950: '#000000',
  },
}
SCSS
$custom: #d7dc52;
$custom-light: #e6e689;
$custom-dark: #000000;
JSON
{
  "hex": "#d7dc52",
  "rgb": {
    "r": 215,
    "g": 220,
    "b": 82
  },
  "hsl": {
    "h": 62.174,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.86523,
    "c": 0.15795,
    "h": 111.3
  },
  "luminance": 0.66243
}

Semantic roles & 50–950 ramp

primary
#D7DC52
secondary
#3C389A
accent
#3FE945
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7DC52

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

Preview Lab → · Contrast checker → · Palette generator →

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