#DFB942#DFB942

#DFB942 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.8% C 0.140 H 90.8°. Best body text is #000000 at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#DFB942
RGBrgb(223, 185, 66)
HSLhsl(45, 71%, 57%)
HSVhsv(45, 70%, 87%)
CMYKcmyk(0%, 17%, 70.4%, 12.5%)
CIE-LABlab(76.55, 1.37, 62.66)
CIE-LCHlch(76.55, 62.67, 88.75°)
OKLaboklab(79.84% -0.002 0.1397)
OKLCHoklch(79.84% 0.14 90.8)
XYZxyz(48.7664, 50.7822, 12.3866)
Luminance0.5078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFB942 #4268DF
analogous
#DF6B42 #DFB942 #B6DF42
triadic
#DFB942 #42DFB9 #B942DF
tetradic
#DFB942 #42DF6B #4268DF #DF42B6
square
#DFB942 #42DF6B #4268DF #DF42B6
split-complementary
#DFB942 #42B6DF #6B42DF
monochromatic
#8E7218 #C39C21 #DFB942 #E8CC76 #F1E0AB

Accessibility & contrast

On white

1.88
#DFB942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.16
#DFB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFB942
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFB942#FFFFFF#000000##000000
##DFB9421.001.8811.1611.16
#FFFFFF1.881.0021.0021.00
#00000011.1621.001.001.00
##00000011.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB731
Deuteranopia (green-blind)
#D7C148
Tritanopia (blue-blind)
#F1AAA1
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #dfb942;
/* rgb */ color: rgb(223, 185, 66);
/* oklch */ color: oklch(79.8% 0.140 90.8);
Tailwind
colors: {
  custom: {
    50: '#edcd7d',
    500: '#dfb942',
    950: '#000000',
  },
}
SCSS
$custom: #dfb942;
$custom-light: #edcd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#dfb942",
  "rgb": {
    "r": 223,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 45.478,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.7984,
    "c": 0.13975,
    "h": 90.8
  },
  "luminance": 0.50779
}

Semantic roles & 50–950 ramp

primary
#DFB942
secondary
#324994
accent
#66EE3A
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #DFB942

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

Preview Lab → · Contrast checker → · Palette generator →

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