#DFC542#DFC542

#DFC542 is a very light, vivid yellow. Relative luminance 0.560; OKLCH L 82.3% C 0.148 H 97.7°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#DFC542
RGBrgb(223, 197, 66)
HSLhsl(50, 71%, 57%)
HSVhsv(50, 70%, 87%)
CMYKcmyk(0%, 11.7%, 70.4%, 12.5%)
CIE-LABlab(79.62, -4.85, 65.74)
CIE-LCHlch(79.62, 65.91, 94.22°)
OKLaboklab(82.27% -0.0198 0.1463)
OKLCHoklch(82.27% 0.148 97.7)
XYZxyz(51.3835, 56.0164, 13.2589)
Luminance0.5601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC542 #425CDF
analogous
#DF7742 #DFC542 #AADF42
triadic
#DFC542 #42DFC5 #C542DF
tetradic
#DFC542 #42DF77 #425CDF #DF42AA
square
#DFC542 #42DF77 #425CDF #DF42AA
split-complementary
#DFC542 #42AADF #7742DF
monochromatic
#8E7B18 #C3A821 #DFC542 #E8D576 #F1E5AB

Accessibility & contrast

On white

1.72
#DFC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.20
#DFC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC542
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC542#FFFFFF#000000##000000
##DFC5421.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DFC94A
Tritanopia (blue-blind)
#F0B6AB
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #dfc542;
/* rgb */ color: rgb(223, 197, 66);
/* oklch */ color: oklch(82.3% 0.148 97.7);
Tailwind
colors: {
  custom: {
    50: '#edd67e',
    500: '#dfc542',
    950: '#000000',
  },
}
SCSS
$custom: #dfc542;
$custom-light: #edd67e;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc542",
  "rgb": {
    "r": 223,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 50.064,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.82272,
    "c": 0.14759,
    "h": 97.7
  },
  "luminance": 0.56014
}

Semantic roles & 50–950 ramp

primary
#DFC542
secondary
#324294
accent
#58EE3A
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #DFC542

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

Preview Lab → · Contrast checker → · Palette generator →

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