#DDD540#DDD540

#DDD540 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.4% C 0.162 H 106.3°. Best body text is #000000 at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#DDD540
RGBrgb(221, 213, 64)
HSLhsl(57, 70%, 56%)
HSVhsv(57, 71%, 87%)
CMYKcmyk(0%, 3.6%, 71%, 13.3%)
CIE-LABlab(83.62, -13.89, 70.33)
CIE-LCHlch(83.62, 71.69, 101.17°)
OKLaboklab(85.4% -0.0454 0.1557)
OKLCHoklch(85.4% 0.162 106.3)
XYZxyz(54.5406, 63.3328, 14.2010)
Luminance0.6333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DDD540 #4048DD
analogous
#DD8640 #DDD540 #96DD40
triadic
#DDD540 #40DDD5 #D540DD
tetradic
#DDD540 #40DD86 #4048DD #DD4096
square
#DDD540 #40DD86 #4048DD #DD4096
split-complementary
#DDD540 #4096DD #8640DD
monochromatic
#8A8419 #BEB622 #DDD540 #E6E074 #EFECA8

Accessibility & contrast

On white

1.54
#DDD540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.67
#DDD540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DDD540
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DDD540#FFFFFF#000000##000000
##DDD5401.001.5413.6713.67
#FFFFFF1.541.0021.0021.00
#00000013.6721.001.001.00
##00000013.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD26
Deuteranopia (green-blind)
#EAD34B
Tritanopia (blue-blind)
#EDC7B8
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #ddd540;
/* rgb */ color: rgb(221, 213, 64);
/* oklch */ color: oklch(85.4% 0.162 106.3);
Tailwind
colors: {
  custom: {
    50: '#ebe17e',
    500: '#ddd540',
    950: '#000000',
  },
}
SCSS
$custom: #ddd540;
$custom-light: #ebe17e;
$custom-dark: #000000;
JSON
{
  "hex": "#ddd540",
  "rgb": {
    "r": 221,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 56.943,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.854,
    "c": 0.16218,
    "h": 106.3
  },
  "luminance": 0.63331
}

Semantic roles & 50–950 ramp

primary
#DDD540
secondary
#313690
accent
#44ED3B
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DDD540

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

Preview Lab → · Contrast checker → · Palette generator →

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