#DFC162#DFC162

#DFC162 is a light, moderate yellow. Relative luminance 0.547; OKLCH L 81.8% C 0.120 H 92.1°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#DFC162
RGBrgb(223, 193, 98)
HSLhsl(46, 66%, 63%)
HSVhsv(46, 56%, 87%)
CMYKcmyk(0%, 13.5%, 56.1%, 12.5%)
CIE-LABlab(78.88, -0.77, 51.06)
CIE-LCHlch(78.88, 51.06, 90.87°)
OKLaboklab(81.77% -0.0043 0.1196)
OKLCHoklch(81.77% 0.12 92.1)
XYZxyz(51.7081, 54.7123, 19.3898)
Luminance0.5471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC162 #6280DF
analogous
#DF8262 #DFC162 #BEDF62
triadic
#DFC162 #62DFC1 #C162DF
tetradic
#DFC162 #62DF82 #6280DF #DF62BE
square
#DFC162 #62DF82 #6280DF #DF62BE
split-complementary
#DFC162 #62BEDF #8262DF
monochromatic
#A58522 #D5AD2F #DFC162 #E9D595 #F4E9C8

Accessibility & contrast

On white

1.76
#DFC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#DFC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC162
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC162#FFFFFF#000000##000000
##DFC1621.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE59
Deuteranopia (green-blind)
#DAC766
Tritanopia (blue-blind)
#EFB4AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dfc162;
/* rgb */ color: rgb(223, 193, 98);
/* oklch */ color: oklch(81.8% 0.120 92.1);
Tailwind
colors: {
  custom: {
    50: '#ecd391',
    500: '#dfc162',
    950: '#000000',
  },
}
SCSS
$custom: #dfc162;
$custom-light: #ecd391;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc162",
  "rgb": {
    "r": 223,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 45.6,
    "s": 66.138,
    "l": 62.941
  },
  "oklch": {
    "l": 0.8177,
    "c": 0.11964,
    "h": 92.1
  },
  "luminance": 0.5471
}

Semantic roles & 50–950 ramp

primary
#DFC162
secondary
#3E57A8
accent
#43CE17
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140D
muted
#85837F

Preview Lab

Preview with #DFC162

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

Preview Lab → · Contrast checker → · Palette generator →

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