#D1D938#D1D938

#D1D938 is a very light, vivid yellow. Relative luminance 0.635; OKLCH L 85.2% C 0.173 H 112.4°. Best body text is #000000 at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#D1D938
RGBrgb(209, 217, 56)
HSLhsl(63, 68%, 54%)
HSVhsv(63, 74%, 85%)
CMYKcmyk(3.7%, 0%, 74.2%, 14.9%)
CIE-LABlab(83.69, -21.22, 72.74)
CIE-LCHlch(83.69, 75.77, 106.26°)
OKLaboklab(85.21% -0.066 0.1598)
OKLCHoklch(85.21% 0.173 112.4)
XYZxyz(51.8228, 63.4678, 13.2612)
Luminance0.6347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D938 #4038D9
analogous
#D99038 #D1D938 #80D938
triadic
#D1D938 #38D1D9 #D938D1
tetradic
#D1D938 #38D990 #4038D9 #D93880
square
#D1D938 #38D990 #4038D9 #D93880
split-complementary
#D1D938 #3880D9 #9038D9
monochromatic
#797E18 #ABB222 #D1D938 #DDE36B #E9ED9F

Accessibility & contrast

On white

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

On black

13.69
#D1D938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D938
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D938#FFFFFF#000000##000000
##D1D9381.001.5313.6913.69
#FFFFFF1.531.0021.0021.00
#00000013.6921.001.001.00
##00000013.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1d938;
/* rgb */ color: rgb(209, 217, 56);
/* oklch */ color: oklch(85.2% 0.173 112.4);
Tailwind
colors: {
  custom: {
    50: '#e3e47b',
    500: '#d1d938',
    950: '#000000',
  },
}
SCSS
$custom: #d1d938;
$custom-light: #e3e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d938",
  "rgb": {
    "r": 209,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 62.981,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.8521,
    "c": 0.17289,
    "h": 112.4
  },
  "luminance": 0.63467
}

Semantic roles & 50–950 ramp

primary
#D1D938
secondary
#343086
accent
#3DEB46
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #D1D938

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

Preview Lab → · Contrast checker → · Palette generator →

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