#DFB842#DFB842

#DFB842 is a light, vivid yellow. Relative luminance 0.504; OKLCH L 79.6% C 0.139 H 90.2°. Best body text is #000000 at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#DFB842
RGBrgb(223, 184, 66)
HSLhsl(45, 71%, 57%)
HSVhsv(45, 70%, 87%)
CMYKcmyk(0%, 17.5%, 70.4%, 12.5%)
CIE-LABlab(76.29, 1.89, 62.40)
CIE-LCHlch(76.29, 62.43, 88.26°)
OKLaboklab(79.64% -0.0005 0.1392)
OKLCHoklch(79.64% 0.139 90.2)
XYZxyz(48.5580, 50.3653, 12.3171)
Luminance0.5036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFB842 #4269DF
analogous
#DF6A42 #DFB842 #B7DF42
triadic
#DFB842 #42DFB8 #B842DF
tetradic
#DFB842 #42DF6A #4269DF #DF42B7
square
#DFB842 #42DF6A #4269DF #DF42B7
split-complementary
#DFB842 #42B7DF #6A42DF
monochromatic
#8E7118 #C39B21 #DFB842 #E8CC76 #F1DFAB

Accessibility & contrast

On white

1.90
#DFB842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.07
#DFB842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFB842
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFB842#FFFFFF#000000##000000
##DFB8421.001.9011.0711.07
#FFFFFF1.901.0021.0021.00
#00000011.0721.001.001.00
##00000011.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB632
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#F1A9A0
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #dfb842;
/* rgb */ color: rgb(223, 184, 66);
/* oklch */ color: oklch(79.6% 0.139 90.2);
Tailwind
colors: {
  custom: {
    50: '#edcd7d',
    500: '#dfb842',
    950: '#000000',
  },
}
SCSS
$custom: #dfb842;
$custom-light: #edcd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#dfb842",
  "rgb": {
    "r": 223,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 45.096,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.7964,
    "c": 0.13919,
    "h": 90.2
  },
  "luminance": 0.50362
}

Semantic roles & 50–950 ramp

primary
#DFB842
secondary
#324A94
accent
#67EE3A
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #DFB842

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

Preview Lab → · Contrast checker → · Palette generator →

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