#D2D852#D2D852

#D2D852 is a very light, vivid yellow. Relative luminance 0.634; OKLCH L 85.3% C 0.155 H 111.7°. Best body text is #000000 at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#D2D852
RGBrgb(210, 216, 82)
HSLhsl(63, 63%, 58%)
HSVhsv(63, 62%, 85%)
CMYKcmyk(2.8%, 0%, 62%, 15.3%)
CIE-LABlab(83.66, -18.93, 63.20)
CIE-LCHlch(83.66, 65.98, 106.68°)
OKLaboklab(85.27% -0.0572 0.1438)
OKLCHoklch(85.27% 0.155 111.7)
XYZxyz(52.6587, 63.4238, 17.4491)
Luminance0.6342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D852 #5852D8
analogous
#D89B52 #D2D852 #8FD852
triadic
#D2D852 #52D2D8 #D852D2
tetradic
#D2D852 #52D89B #5852D8 #D8528F
square
#D2D852 #52D89B #5852D8 #D8528F
split-complementary
#D2D852 #528FD8 #9B52D8
monochromatic
#8A8F20 #BBC12C #D2D852 #DFE384 #ECEFB6

Accessibility & contrast

On white

1.53
#D2D852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.68
#D2D852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D852
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D852#FFFFFF#000000##000000
##D2D8521.001.5313.6813.68
#FFFFFF1.531.0021.0021.00
#00000013.6821.001.001.00
##00000013.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF41
Deuteranopia (green-blind)
#E8D25B
Tritanopia (blue-blind)
#DFCCBC
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d852;
/* rgb */ color: rgb(210, 216, 82);
/* oklch */ color: oklch(85.3% 0.155 111.7);
Tailwind
colors: {
  custom: {
    50: '#e3e389',
    500: '#d2d852',
    950: '#000000',
  },
}
SCSS
$custom: #d2d852;
$custom-light: #e3e389;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d852",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 62.687,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85265,
    "c": 0.15477,
    "h": 111.7
  },
  "luminance": 0.63423
}

Semantic roles & 50–950 ramp

primary
#D2D852
secondary
#3E3995
accent
#42E649
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D852

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

Preview Lab → · Contrast checker → · Palette generator →

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