#DFB940#DFB940

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

Color values

HEX#DFB940
RGBrgb(223, 185, 64)
HSLhsl(46, 71%, 56%)
HSVhsv(46, 71%, 87%)
CMYKcmyk(0%, 17%, 71.3%, 12.5%)
CIE-LABlab(76.53, 1.27, 63.43)
CIE-LCHlch(76.53, 63.45, 88.85°)
OKLaboklab(79.83% -0.0025 0.141)
OKLCHoklch(79.83% 0.141 91)
XYZxyz(48.7085, 50.7590, 12.0814)
Luminance0.5076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFB940 #4066DF
analogous
#DF6A40 #DFB940 #B6DF40
triadic
#DFB940 #40DFB9 #B940DF
tetradic
#DFB940 #40DF6A #4066DF #DF40B6
square
#DFB940 #40DF6A #4066DF #DF40B6
split-complementary
#DFB940 #40B6DF #6A40DF
monochromatic
#8D7118 #C19B20 #DFB940 #E8CC74 #F1DFA9

Accessibility & contrast

On white

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

On black

11.15
#DFB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFB940
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFB940#FFFFFF#000000##000000
##DFB9401.001.8811.1511.15
#FFFFFF1.881.0021.0021.00
#00000011.1521.001.001.00
##00000011.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dfb940;
/* rgb */ color: rgb(223, 185, 64);
/* oklch */ color: oklch(79.8% 0.141 91.0);
Tailwind
colors: {
  custom: {
    50: '#edcd7c',
    500: '#dfb940',
    950: '#000000',
  },
}
SCSS
$custom: #dfb940;
$custom-light: #edcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#dfb940",
  "rgb": {
    "r": 223,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 45.66,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.79825,
    "c": 0.14104,
    "h": 91
  },
  "luminance": 0.50756
}

Semantic roles & 50–950 ramp

primary
#DFB940
secondary
#314892
accent
#65EE3A
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #DFB940

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

Preview Lab → · Contrast checker → · Palette generator →

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