#D2D238#D2D238

#D2D238 is a very light, vivid yellow. Relative luminance 0.601; OKLCH L 83.8% C 0.166 H 109.5°. Best body text is #000000 at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#D2D238
RGBrgb(210, 210, 56)
HSLhsl(60, 63%, 52%)
HSVhsv(60, 73%, 82%)
CMYKcmyk(0%, 0%, 73.3%, 17.6%)
CIE-LABlab(81.88, -17.37, 71.08)
CIE-LCHlch(81.88, 73.17, 103.73°)
OKLaboklab(83.79% -0.0553 0.1563)
OKLCHoklch(83.79% 0.166 109.5)
XYZxyz(50.3406, 60.0819, 12.6858)
Luminance0.6008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D238 #3838D2
analogous
#D28538 #D2D238 #85D238
triadic
#D2D238 #38D2D2 #D238D2
tetradic
#D2D238 #38D285 #3838D2 #D23885
square
#D2D238 #38D285 #3838D2 #D23885
split-complementary
#D2D238 #3885D2 #8538D2
monochromatic
#75751A #A7A726 #D2D238 #DDDD6A #E9E99C

Accessibility & contrast

On white

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

On black

13.02
#D2D238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D238
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D238#FFFFFF#000000##000000
##D2D2381.001.6113.0213.02
#FFFFFF1.611.0021.0021.00
#00000013.0221.001.001.00
##00000013.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C916
Deuteranopia (green-blind)
#E5CE44
Tritanopia (blue-blind)
#E1C5B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d238;
/* rgb */ color: rgb(210, 210, 56);
/* oklch */ color: oklch(83.8% 0.166 109.5);
Tailwind
colors: {
  custom: {
    50: '#e4df7a',
    500: '#d2d238',
    950: '#000000',
  },
}
SCSS
$custom: #d2d238;
$custom-light: #e4df7a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d238",
  "rgb": {
    "r": 210,
    "g": 210,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.83786,
    "c": 0.16576,
    "h": 109.5
  },
  "luminance": 0.6008
}

Semantic roles & 50–950 ramp

primary
#D2D238
secondary
#31317E
accent
#42E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D2D238

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

Preview Lab → · Contrast checker → · Palette generator →

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