#DCDC42#DCDC42

#DCDC42 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 86.8% C 0.168 H 109.4°. Best body text is #000000 at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#DCDC42
RGBrgb(220, 220, 66)
HSLhsl(60, 69%, 56%)
HSVhsv(60, 70%, 86%)
CMYKcmyk(0%, 0%, 70%, 13.7%)
CIE-LABlab(85.40, -17.67, 71.33)
CIE-LCHlch(85.40, 73.48, 103.92°)
OKLaboklab(86.81% -0.0558 0.1582)
OKLCHoklch(86.81% 0.168 109.4)
XYZxyz(56.0938, 66.7971, 15.0915)
Luminance0.6680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCDC42 #4242DC
analogous
#DC8F42 #DCDC42 #8FDC42
triadic
#DCDC42 #42DCDC #DC42DC
tetradic
#DCDC42 #42DC8F #4242DC #DC428F
square
#DCDC42 #42DC8F #4242DC #DC428F
split-complementary
#DCDC42 #428FDC #8F42DC
monochromatic
#8A8A1A #BEBE23 #DCDC42 #E6E676 #EFEFA9

Accessibility & contrast

On white

1.46
#DCDC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.36
#DCDC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCDC42
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCDC42#FFFFFF#000000##000000
##DCDC421.001.4614.3614.36
#FFFFFF1.461.0021.0021.00
#00000014.3621.001.001.00
##00000014.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED327
Deuteranopia (green-blind)
#EFD84D
Tritanopia (blue-blind)
#EBCEBE
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcdc42;
/* rgb */ color: rgb(220, 220, 66);
/* oklch */ color: oklch(86.8% 0.168 109.4);
Tailwind
colors: {
  custom: {
    50: '#ebe680',
    500: '#dcdc42',
    950: '#000000',
  },
}
SCSS
$custom: #dcdc42;
$custom-light: #ebe680;
$custom-dark: #000000;
JSON
{
  "hex": "#dcdc42",
  "rgb": {
    "r": 220,
    "g": 220,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.86808,
    "c": 0.16773,
    "h": 109.4
  },
  "luminance": 0.66795
}

Semantic roles & 50–950 ramp

primary
#DCDC42
secondary
#323290
accent
#3CEC3C
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DCDC42

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

Preview Lab → · Contrast checker → · Palette generator →

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