#DCD242#DCD242

#DCD242 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.7% C 0.158 H 105.3°. Best body text is #000000 at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#DCD242
RGBrgb(220, 210, 66)
HSLhsl(56, 69%, 56%)
HSVhsv(56, 70%, 86%)
CMYKcmyk(0%, 4.5%, 70%, 13.7%)
CIE-LABlab(82.76, -12.72, 68.74)
CIE-LCHlch(82.76, 69.91, 100.48°)
OKLaboklab(84.7% -0.0419 0.1527)
OKLCHoklch(84.7% 0.158 105.3)
XYZxyz(53.5473, 61.7042, 14.2427)
Luminance0.6170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD242 #424CDC
analogous
#DC8542 #DCD242 #99DC42
triadic
#DCD242 #42DCD2 #D242DC
tetradic
#DCD242 #42DC85 #424CDC #DC4299
square
#DCD242 #42DC85 #424CDC #DC4299
split-complementary
#DCD242 #4299DC #8542DC
monochromatic
#8A831A #BEB423 #DCD242 #E6DE76 #EFEBA9

Accessibility & contrast

On white

1.57
#DCD242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.34
#DCD242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD242
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD242#FFFFFF#000000##000000
##DCD2421.001.5713.3413.34
#FFFFFF1.571.0021.0021.00
#00000013.3421.001.001.00
##00000013.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB2A
Deuteranopia (green-blind)
#E8D14C
Tritanopia (blue-blind)
#ECC4B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dcd242;
/* rgb */ color: rgb(220, 210, 66);
/* oklch */ color: oklch(84.7% 0.158 105.3);
Tailwind
colors: {
  custom: {
    50: '#ebdf7f',
    500: '#dcd242',
    950: '#000000',
  },
}
SCSS
$custom: #dcd242;
$custom-light: #ebdf7f;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd242",
  "rgb": {
    "r": 220,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 56.104,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.84698,
    "c": 0.15836,
    "h": 105.3
  },
  "luminance": 0.61702
}

Semantic roles & 50–950 ramp

primary
#DCD242
secondary
#323890
accent
#48EC3C
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DCD242

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

Preview Lab → · Contrast checker → · Palette generator →

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