#D2D938#D2D938

#D2D938 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.3% C 0.173 H 112.1°. Best body text is #000000 at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#D2D938
RGBrgb(210, 217, 56)
HSLhsl(63, 68%, 54%)
HSVhsv(63, 74%, 85%)
CMYKcmyk(3.2%, 0%, 74.2%, 14.9%)
CIE-LABlab(83.76, -20.80, 72.84)
CIE-LCHlch(83.76, 75.75, 105.94°)
OKLaboklab(85.29% -0.0649 0.16)
OKLCHoklch(85.29% 0.173 112.1)
XYZxyz(52.1067, 63.6142, 13.2745)
Luminance0.6361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D938 #3F38D9
analogous
#D98F38 #D2D938 #81D938
triadic
#D2D938 #38D2D9 #D938D2
tetradic
#D2D938 #38D98F #3F38D9 #D93881
square
#D2D938 #38D98F #3F38D9 #D93881
split-complementary
#D2D938 #3881D9 #8F38D9
monochromatic
#7A7E18 #ACB222 #D2D938 #DEE36B #E9ED9F

Accessibility & contrast

On white

1.53
#D2D938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.72
#D2D938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D938
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D938#FFFFFF#000000##000000
##D2D9381.001.5313.7213.72
#FFFFFF1.531.0021.0021.00
#00000013.7221.001.001.00
##00000013.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF11
Deuteranopia (green-blind)
#EAD346
Tritanopia (blue-blind)
#E0CCBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d938;
/* rgb */ color: rgb(210, 217, 56);
/* oklch */ color: oklch(85.3% 0.173 112.1);
Tailwind
colors: {
  custom: {
    50: '#e4e47b',
    500: '#d2d938',
    950: '#000000',
  },
}
SCSS
$custom: #d2d938;
$custom-light: #e4e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d938",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 62.609,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.85291,
    "c": 0.17264,
    "h": 112.1
  },
  "luminance": 0.63613
}

Semantic roles & 50–950 ramp

primary
#D2D938
secondary
#333086
accent
#3DEB45
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D2D938

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

Preview Lab → · Contrast checker → · Palette generator →

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