#D2D271#D2D271

#D2D271 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.3% C 0.120 H 108.7°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#D2D271
RGBrgb(210, 210, 113)
HSLhsl(60, 52%, 63%)
HSVhsv(60, 46%, 82%)
CMYKcmyk(0%, 0%, 46.2%, 17.6%)
CIE-LABlab(82.37, -13.50, 47.76)
CIE-LCHlch(82.37, 49.63, 105.78°)
OKLaboklab(84.33% -0.0386 0.1139)
OKLCHoklch(84.33% 0.12 108.7)
XYZxyz(52.6066, 60.9883, 24.6203)
Luminance0.6099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D271 #7171D2
analogous
#D2A171 #D2D271 #A1D271
triadic
#D2D271 #71D2D2 #D271D2
tetradic
#D2D271 #71D2A1 #7171D2 #D271A1
square
#D2D271 #71D2A1 #7171D2 #D271A1
split-complementary
#D2D271 #71A1D2 #A171D2
monochromatic
#989830 #C3C343 #D2D271 #E1E19F #EFEFCE

Accessibility & contrast

On white

1.59
#D2D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#D2D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D271
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D271#FFFFFF#000000##000000
##D2D2711.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CB69
Deuteranopia (green-blind)
#E1CF76
Tritanopia (blue-blind)
#DEC7BB
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d2d271;
/* rgb */ color: rgb(210, 210, 113);
/* oklch */ color: oklch(84.3% 0.120 108.7);
Tailwind
colors: {
  custom: {
    50: '#e1df9c',
    500: '#d2d271',
    950: '#000000',
  },
}
SCSS
$custom: #d2d271;
$custom-light: #e1df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d271",
  "rgb": {
    "r": 210,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.84334,
    "c": 0.12029,
    "h": 108.7
  },
  "luminance": 0.60987
}

Semantic roles & 50–950 ramp

primary
#D2D271
secondary
#4A4A9E
accent
#26BF26
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D271

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

Preview Lab → · Contrast checker → · Palette generator →

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