#DEC840#DEC840

#DEC840 is a very light, vivid yellow. Relative luminance 0.572; OKLCH L 82.8% C 0.151 H 99.8°. Best body text is #000000 at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#DEC840
RGBrgb(222, 200, 64)
HSLhsl(52, 71%, 56%)
HSVhsv(52, 71%, 87%)
CMYKcmyk(0%, 9.9%, 71.2%, 12.9%)
CIE-LABlab(80.30, -6.91, 67.12)
CIE-LCHlch(80.30, 67.48, 95.88°)
OKLaboklab(82.78% -0.0258 0.1489)
OKLCHoklch(82.78% 0.151 99.8)
XYZxyz(51.7063, 57.2107, 13.1687)
Luminance0.5721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC840 #4056DE
analogous
#DE7940 #DEC840 #A5DE40
triadic
#DEC840 #40DEC8 #C840DE
tetradic
#DEC840 #40DE79 #4056DE #DE40A5
square
#DEC840 #40DE79 #4056DE #DE40A5
split-complementary
#DEC840 #40A5DE #7940DE
monochromatic
#8B7B18 #C0AA21 #DEC840 #E7D774 #F0E6A8

Accessibility & contrast

On white

1.69
#DEC840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.44
#DEC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC840
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC840#FFFFFF#000000##000000
##DEC8401.001.6912.4412.44
#FFFFFF1.691.0021.0021.00
#00000012.4421.001.001.00
##00000012.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32A
Deuteranopia (green-blind)
#E1CB49
Tritanopia (blue-blind)
#EFB9AD
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #dec840;
/* rgb */ color: rgb(222, 200, 64);
/* oklch */ color: oklch(82.8% 0.151 99.8);
Tailwind
colors: {
  custom: {
    50: '#ecd87d',
    500: '#dec840',
    950: '#000000',
  },
}
SCSS
$custom: #dec840;
$custom-light: #ecd87d;
$custom-dark: #000000;
JSON
{
  "hex": "#dec840",
  "rgb": {
    "r": 222,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 51.646,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82782,
    "c": 0.1511,
    "h": 99.8
  },
  "luminance": 0.57208
}

Semantic roles & 50–950 ramp

primary
#DEC840
secondary
#313F91
accent
#53ED3A
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #DEC840

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

Preview Lab → · Contrast checker → · Palette generator →

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