#DDD940#DDD940

#DDD940 is a very light, vivid yellow. Relative luminance 0.654; OKLCH L 86.2% C 0.166 H 107.9°. Best body text is #000000 at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#DDD940
RGBrgb(221, 217, 64)
HSLhsl(58, 70%, 56%)
HSVhsv(58, 71%, 87%)
CMYKcmyk(0%, 1.8%, 71%, 13.3%)
CIE-LABlab(84.67, -15.88, 71.35)
CIE-LCHlch(84.67, 73.09, 102.54°)
OKLaboklab(86.24% -0.051 0.1578)
OKLCHoklch(86.24% 0.166 107.9)
XYZxyz(55.5592, 65.3699, 14.5405)
Luminance0.6537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DDD940 #4044DD
analogous
#DD8A40 #DDD940 #93DD40
triadic
#DDD940 #40DDD9 #D940DD
tetradic
#DDD940 #40DD8A #4044DD #DD4093
square
#DDD940 #40DD8A #4044DD #DD4093
split-complementary
#DDD940 #4093DD #8A40DD
monochromatic
#8A8719 #BEBA22 #DDD940 #E6E374 #EFEEA8

Accessibility & contrast

On white

1.49
#DDD940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.07
#DDD940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DDD940
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DDD940#FFFFFF#000000##000000
##DDD9401.001.4914.0714.07
#FFFFFF1.491.0021.0021.00
#00000014.0721.001.001.00
##00000014.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD024
Deuteranopia (green-blind)
#EED64B
Tritanopia (blue-blind)
#EDCBBB
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #ddd940;
/* rgb */ color: rgb(221, 217, 64);
/* oklch */ color: oklch(86.2% 0.166 107.9);
Tailwind
colors: {
  custom: {
    50: '#ebe47f',
    500: '#ddd940',
    950: '#000000',
  },
}
SCSS
$custom: #ddd940;
$custom-light: #ebe47f;
$custom-dark: #000000;
JSON
{
  "hex": "#ddd940",
  "rgb": {
    "r": 221,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 58.471,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.86243,
    "c": 0.16588,
    "h": 107.9
  },
  "luminance": 0.65368
}

Semantic roles & 50–950 ramp

primary
#DDD940
secondary
#313490
accent
#40ED3B
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DDD940

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

Preview Lab → · Contrast checker → · Palette generator →

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