#DFC04F#DFC04F

#DFC04F is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.4% C 0.135 H 93.8°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#DFC04F
RGBrgb(223, 192, 79)
HSLhsl(47, 69%, 59%)
HSVhsv(47, 65%, 87%)
CMYKcmyk(0%, 13.9%, 64.6%, 12.5%)
CIE-LABlab(78.44, -1.56, 59.21)
CIE-LCHlch(78.44, 59.23, 91.51°)
OKLaboklab(81.36% -0.0089 0.1346)
OKLCHoklch(81.36% 0.135 93.8)
XYZxyz(50.6948, 53.9544, 15.1396)
Luminance0.5395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC04F #4F6EDF
analogous
#DF784F #DFC04F #B6DF4F
triadic
#DFC04F #4FDFC0 #C04FDF
tetradic
#DFC04F #4FDF78 #4F6EDF #DF4FB6
square
#DFC04F #4FDF78 #4F6EDF #DF4FB6
split-complementary
#DFC04F #4FB6DF #784FDF
monochromatic
#987D1C #CCA825 #DFC04F #E8D383 #F2E5B7

Accessibility & contrast

On white

1.78
#DFC04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#DFC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC04F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC04F#FFFFFF#000000##000000
##DFC04F1.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD42
Deuteranopia (green-blind)
#DBC654
Tritanopia (blue-blind)
#F0B2A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #dfc04f;
/* rgb */ color: rgb(223, 192, 79);
/* oklch */ color: oklch(81.4% 0.135 93.8);
Tailwind
colors: {
  custom: {
    50: '#ecd285',
    500: '#dfc04f',
    950: '#000000',
  },
}
SCSS
$custom: #dfc04f;
$custom-light: #ecd285;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc04f",
  "rgb": {
    "r": 223,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 47.083,
    "s": 69.231,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81364,
    "c": 0.13487,
    "h": 93.8
  },
  "luminance": 0.53952
}

Semantic roles & 50–950 ramp

primary
#DFC04F
secondary
#364C9C
accent
#62EC3C
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DFC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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