#D2D845#D2D845

#D2D845 is a very light, vivid yellow. Relative luminance 0.632; OKLCH L 85.2% C 0.164 H 111.7°. Best body text is #000000 at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#D2D845
RGBrgb(210, 216, 69)
HSLhsl(62, 65%, 56%)
HSVhsv(62, 68%, 85%)
CMYKcmyk(2.8%, 0%, 68.1%, 15.3%)
CIE-LABlab(83.57, -19.70, 68.18)
CIE-LCHlch(83.57, 70.97, 106.11°)
OKLaboklab(85.16% -0.0606 0.1524)
OKLCHoklch(85.16% 0.164 111.7)
XYZxyz(52.2100, 63.2443, 15.0861)
Luminance0.6324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D845 #4B45D8
analogous
#D89445 #D2D845 #88D845
triadic
#D2D845 #45D2D8 #D845D2
tetradic
#D2D845 #45D894 #4B45D8 #D84588
square
#D2D845 #45D894 #4B45D8 #D84588
split-complementary
#D2D845 #4588D8 #9445D8
monochromatic
#82861C #B3B927 #D2D845 #DEE378 #EAEDAA

Accessibility & contrast

On white

1.54
#D2D845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.65
#D2D845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D845
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D845#FFFFFF#000000##000000
##D2D8451.001.5413.6513.65
#FFFFFF1.541.0021.0021.00
#00000013.6521.001.001.00
##00000013.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d845;
/* rgb */ color: rgb(210, 216, 69);
/* oklch */ color: oklch(85.2% 0.164 111.7);
Tailwind
colors: {
  custom: {
    50: '#e3e381',
    500: '#d2d845',
    950: '#000000',
  },
}
SCSS
$custom: #d2d845;
$custom-light: #e3e381;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d845",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 69
  },
  "hsl": {
    "h": 62.449,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.8516,
    "c": 0.16398,
    "h": 111.7
  },
  "luminance": 0.63243
}

Semantic roles & 50–950 ramp

primary
#D2D845
secondary
#38348D
accent
#40E846
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D845

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

Preview Lab → · Contrast checker → · Palette generator →

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