#DFBA42#DFBA42

#DFBA42 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 80.0% C 0.140 H 91.4°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#DFBA42
RGBrgb(223, 186, 66)
HSLhsl(46, 71%, 57%)
HSVhsv(46, 70%, 87%)
CMYKcmyk(0%, 16.6%, 70.4%, 12.5%)
CIE-LABlab(76.80, 0.85, 62.91)
CIE-LCHlch(76.80, 62.92, 89.23°)
OKLaboklab(80.04% -0.0035 0.1403)
OKLCHoklch(80.04% 0.14 91.4)
XYZxyz(48.9763, 51.2020, 12.4565)
Luminance0.5120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFBA42 #4267DF
analogous
#DF6C42 #DFBA42 #B6DF42
triadic
#DFBA42 #42DFBA #BA42DF
tetradic
#DFBA42 #42DF6C #4267DF #DF42B6
square
#DFBA42 #42DF6C #4267DF #DF42B6
split-complementary
#DFBA42 #42B6DF #6C42DF
monochromatic
#8E7318 #C39D21 #DFBA42 #E8CD76 #F1E0AB

Accessibility & contrast

On white

1.87
#DFBA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#DFBA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFBA42
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFBA42#FFFFFF#000000##000000
##DFBA421.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB731
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#F1ABA2
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #dfba42;
/* rgb */ color: rgb(223, 186, 66);
/* oklch */ color: oklch(80.0% 0.140 91.4);
Tailwind
colors: {
  custom: {
    50: '#edce7d',
    500: '#dfba42',
    950: '#000000',
  },
}
SCSS
$custom: #dfba42;
$custom-light: #edce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#dfba42",
  "rgb": {
    "r": 223,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 45.86,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80041,
    "c": 0.14032,
    "h": 91.4
  },
  "luminance": 0.51199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DFBA42

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

Preview Lab → · Contrast checker → · Palette generator →

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