#DFC842#DFC842

#DFC842 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.9% C 0.150 H 99.3°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#DFC842
RGBrgb(223, 200, 66)
HSLhsl(51, 71%, 57%)
HSVhsv(51, 70%, 87%)
CMYKcmyk(0%, 10.3%, 70.4%, 12.5%)
CIE-LABlab(80.40, -6.39, 66.51)
CIE-LCHlch(80.40, 66.81, 95.49°)
OKLaboklab(82.89% -0.0242 0.1479)
OKLCHoklch(82.89% 0.15 99.3)
XYZxyz(52.0715, 57.3924, 13.4882)
Luminance0.5739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC842 #4259DF
analogous
#DF7A42 #DFC842 #A8DF42
triadic
#DFC842 #42DFC8 #C842DF
tetradic
#DFC842 #42DF7A #4259DF #DF42A8
square
#DFC842 #42DF7A #4259DF #DF42A8
split-complementary
#DFC842 #42A8DF #7A42DF
monochromatic
#8E7D18 #C3AB21 #DFC842 #E8D776 #F1E6AB

Accessibility & contrast

On white

1.68
#DFC842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#DFC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC842
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC842#FFFFFF#000000##000000
##DFC8421.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#E1CB4A
Tritanopia (blue-blind)
#F0B9AD
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #dfc842;
/* rgb */ color: rgb(223, 200, 66);
/* oklch */ color: oklch(82.9% 0.150 99.3);
Tailwind
colors: {
  custom: {
    50: '#edd87e',
    500: '#dfc842',
    950: '#000000',
  },
}
SCSS
$custom: #dfc842;
$custom-light: #edd87e;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc842",
  "rgb": {
    "r": 223,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 51.21,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.82887,
    "c": 0.14985,
    "h": 99.3
  },
  "luminance": 0.5739
}

Semantic roles & 50–950 ramp

primary
#DFC842
secondary
#324094
accent
#54EE3A
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #DFC842

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

Preview Lab → · Contrast checker → · Palette generator →

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