#D2D251#D2D251

#D2D251 is a very light, vivid yellow. Relative luminance 0.604; OKLCH L 84.0% C 0.149 H 109.2°. Best body text is #000000 at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#D2D251
RGBrgb(210, 210, 81)
HSLhsl(60, 59%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0%, 61.4%, 17.6%)
CIE-LABlab(82.05, -16.03, 61.89)
CIE-LCHlch(82.05, 63.94, 104.52°)
OKLaboklab(83.97% -0.0491 0.1409)
OKLCHoklch(83.97% 0.149 109.2)
XYZxyz(51.1117, 60.3903, 16.7471)
Luminance0.6039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D251 #5151D2
analogous
#D29251 #D2D251 #92D251
triadic
#D2D251 #51D2D2 #D251D2
tetradic
#D2D251 #51D292 #5151D2 #D25192
square
#D2D251 #51D292 #5151D2 #D25192
split-complementary
#D2D251 #5192D2 #9251D2
monochromatic
#868623 #B7B72F #D2D251 #DFDF82 #EBEBB2

Accessibility & contrast

On white

1.61
#D2D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.08
#D2D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D251
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D251#FFFFFF#000000##000000
##D2D2511.001.6113.0813.08
#FFFFFF1.611.0021.0021.00
#00000013.0821.001.001.00
##00000013.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA41
Deuteranopia (green-blind)
#E4CE59
Tritanopia (blue-blind)
#E0C5B7
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d251;
/* rgb */ color: rgb(210, 210, 81);
/* oklch */ color: oklch(84.0% 0.149 109.2);
Tailwind
colors: {
  custom: {
    50: '#e3df87',
    500: '#d2d251',
    950: '#000000',
  },
}
SCSS
$custom: #d2d251;
$custom-light: #e3df87;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d251",
  "rgb": {
    "r": 210,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83973,
    "c": 0.14923,
    "h": 109.2
  },
  "luminance": 0.60389
}

Semantic roles & 50–950 ramp

primary
#D2D251
secondary
#3B3B8D
accent
#46E246
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D251

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

Preview Lab → · Contrast checker → · Palette generator →

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