#D2D151#D2D151

#D2D151 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.8% C 0.148 H 108.8°. Best body text is #000000 at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#D2D151
RGBrgb(210, 209, 81)
HSLhsl(60, 59%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0.5%, 61.4%, 17.6%)
CIE-LABlab(81.78, -15.53, 61.61)
CIE-LCHlch(81.78, 63.54, 104.15°)
OKLaboklab(83.76% -0.0477 0.1403)
OKLCHoklch(83.76% 0.148 108.8)
XYZxyz(50.8656, 59.8981, 16.6650)
Luminance0.5990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D151 #5152D2
analogous
#D29151 #D2D151 #93D251
triadic
#D2D151 #51D2D1 #D151D2
tetradic
#D2D151 #51D291 #5152D2 #D25193
square
#D2D151 #51D291 #5152D2 #D25193
split-complementary
#D2D151 #5193D2 #9151D2
monochromatic
#868523 #B7B62F #D2D151 #DFDE82 #EBEBB2

Accessibility & contrast

On white

1.62
#D2D151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.98
#D2D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D151
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D151#FFFFFF#000000##000000
##D2D1511.001.6212.9812.98
#FFFFFF1.621.0021.0021.00
#00000012.9821.001.001.00
##00000012.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C941
Deuteranopia (green-blind)
#E3CD59
Tritanopia (blue-blind)
#E0C4B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d2d151;
/* rgb */ color: rgb(210, 209, 81);
/* oklch */ color: oklch(83.8% 0.148 108.8);
Tailwind
colors: {
  custom: {
    50: '#e3de87',
    500: '#d2d151',
    950: '#000000',
  },
}
SCSS
$custom: #d2d151;
$custom-light: #e3de87;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d151",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 59.535,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.8376,
    "c": 0.1482,
    "h": 108.8
  },
  "luminance": 0.59897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2D151

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

Preview Lab → · Contrast checker → · Palette generator →

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