#D2D378#D2D378

#D2D378 is a very light, moderate yellow. Relative luminance 0.616; OKLCH L 84.6% C 0.114 H 109.2°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#D2D378
RGBrgb(210, 211, 120)
HSLhsl(61, 51%, 65%)
HSVhsv(61, 43%, 83%)
CMYKcmyk(0.5%, 0%, 43.1%, 17.3%)
CIE-LABlab(82.73, -13.32, 44.79)
CIE-LCHlch(82.73, 46.72, 106.56°)
OKLaboklab(84.64% -0.0375 0.1078)
OKLCHoklch(84.64% 0.114 109.2)
XYZxyz(53.2637, 61.6474, 26.8589)
Luminance0.6165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D378 #7978D3
analogous
#D3A678 #D2D378 #A5D378
triadic
#D2D378 #78D2D3 #D378D2
tetradic
#D2D378 #78D3A6 #7978D3 #D378A5
square
#D2D378 #78D3A6 #7978D3 #D378A5
split-complementary
#D2D378 #78A5D3 #A678D3
monochromatic
#9C9D33 #C3C44A #D2D378 #E1E2A6 #F1F1D4

Accessibility & contrast

On white

1.58
#D2D378 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#D2D378 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D378
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D378#FFFFFF#000000##000000
##D2D3781.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CC71
Deuteranopia (green-blind)
#E1D07C
Tritanopia (blue-blind)
#DDC9BD
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d2d378;
/* rgb */ color: rgb(210, 211, 120);
/* oklch */ color: oklch(84.6% 0.114 109.2);
Tailwind
colors: {
  custom: {
    50: '#e1e0a0',
    500: '#d2d378',
    950: '#000000',
  },
}
SCSS
$custom: #d2d378;
$custom-light: #e1e0a0;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d378",
  "rgb": {
    "r": 210,
    "g": 211,
    "b": 120
  },
  "hsl": {
    "h": 60.659,
    "s": 50.838,
    "l": 64.902
  },
  "oklch": {
    "l": 0.84643,
    "c": 0.11413,
    "h": 109.2
  },
  "luminance": 0.61646
}

Semantic roles & 50–950 ramp

primary
#D2D378
secondary
#4E4DA2
accent
#27BE29
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D378

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

Preview Lab → · Contrast checker → · Palette generator →

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