#D5D938#D5D938

#D5D938 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.5% C 0.172 H 111.0°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#D5D938
RGBrgb(213, 217, 56)
HSLhsl(61, 68%, 54%)
HSVhsv(61, 74%, 85%)
CMYKcmyk(1.8%, 0%, 74.2%, 14.9%)
CIE-LABlab(84.00, -19.56, 73.14)
CIE-LCHlch(84.00, 75.71, 104.97°)
OKLaboklab(85.53% -0.0616 0.1605)
OKLCHoklch(85.53% 0.172 111)
XYZxyz(52.9691, 64.0588, 13.3149)
Luminance0.6406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D938 #3C38D9
analogous
#D98C38 #D5D938 #84D938
triadic
#D5D938 #38D5D9 #D938D5
tetradic
#D5D938 #38D98C #3C38D9 #D93884
square
#D5D938 #38D98C #3C38D9 #D93884
split-complementary
#D5D938 #3884D9 #8C38D9
monochromatic
#7C7E18 #AEB222 #D5D938 #E0E36B #EBED9F

Accessibility & contrast

On white

1.52
#D5D938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#D5D938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D938
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D938#FFFFFF#000000##000000
##D5D9381.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5d938;
/* rgb */ color: rgb(213, 217, 56);
/* oklch */ color: oklch(85.5% 0.172 111.0);
Tailwind
colors: {
  custom: {
    50: '#e6e47b',
    500: '#d5d938',
    950: '#000000',
  },
}
SCSS
$custom: #d5d938;
$custom-light: #e6e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d938",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 61.491,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.85533,
    "c": 0.17192,
    "h": 111
  },
  "luminance": 0.64057
}

Semantic roles & 50–950 ramp

primary
#D5D938
secondary
#323086
accent
#3DEB41
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5D938

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

Preview Lab → · Contrast checker → · Palette generator →

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