#D2D752#D2D752

#D2D752 is a very light, vivid yellow. Relative luminance 0.629; OKLCH L 85.1% C 0.154 H 111.3°. Best body text is #000000 at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#D2D752
RGBrgb(210, 215, 82)
HSLhsl(62, 62%, 58%)
HSVhsv(62, 62%, 84%)
CMYKcmyk(2.3%, 0%, 61.9%, 15.7%)
CIE-LABlab(83.40, -18.44, 62.92)
CIE-LCHlch(83.40, 65.56, 106.34°)
OKLaboklab(85.05% -0.0558 0.1432)
OKLCHoklch(85.05% 0.154 111.3)
XYZxyz(52.4033, 62.9130, 17.3639)
Luminance0.6291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D752 #5752D7
analogous
#D79A52 #D2D752 #8FD752
triadic
#D2D752 #52D2D7 #D752D2
tetradic
#D2D752 #52D79A #5752D7 #D7528F
square
#D2D752 #52D79A #5752D7 #D7528F
split-complementary
#D2D752 #528FD7 #9A52D7
monochromatic
#8A8E21 #BAC02C #D2D752 #DFE284 #ECEEB5

Accessibility & contrast

On white

1.55
#D2D752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.58
#D2D752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D752
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D752#FFFFFF#000000##000000
##D2D7521.001.5513.5813.58
#FFFFFF1.551.0021.0021.00
#00000013.5821.001.001.00
##00000013.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CE41
Deuteranopia (green-blind)
#E7D25A
Tritanopia (blue-blind)
#E0CBBB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d2d752;
/* rgb */ color: rgb(210, 215, 82);
/* oklch */ color: oklch(85.1% 0.154 111.3);
Tailwind
colors: {
  custom: {
    50: '#e3e388',
    500: '#d2d752',
    950: '#000000',
  },
}
SCSS
$custom: #d2d752;
$custom-light: #e3e388;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d752",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 82
  },
  "hsl": {
    "h": 62.256,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.85051,
    "c": 0.15371,
    "h": 111.3
  },
  "luminance": 0.62912
}

Semantic roles & 50–950 ramp

primary
#D2D752
secondary
#3D3A93
accent
#42E648
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D752

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

Preview Lab → · Contrast checker → · Palette generator →

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