#DFC157#DFC157

#DFC157 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.6% C 0.129 H 93.5°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#DFC157
RGBrgb(223, 193, 87)
HSLhsl(47, 68%, 61%)
HSVhsv(47, 61%, 87%)
CMYKcmyk(0%, 13.5%, 61%, 12.5%)
CIE-LABlab(78.76, -1.57, 56.03)
CIE-LCHlch(78.76, 56.05, 91.60°)
OKLaboklab(81.65% -0.008 0.129)
OKLCHoklch(81.65% 0.129 93.5)
XYZxyz(51.2240, 54.5186, 16.8400)
Luminance0.5452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC157 #5775DF
analogous
#DF7D57 #DFC157 #B9DF57
triadic
#DFC157 #57DFC1 #C157DF
tetradic
#DFC157 #57DF7D #5775DF #DF57B9
square
#DFC157 #57DF7D #5775DF #DF57B9
split-complementary
#DFC157 #57B9DF #7D57DF
monochromatic
#9E811E #D1AC28 #DFC157 #E9D48A #F3E7BE

Accessibility & contrast

On white

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

On black

11.90
#DFC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC157
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC157#FFFFFF#000000##000000
##DFC1571.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE4C
Deuteranopia (green-blind)
#DBC75C
Tritanopia (blue-blind)
#F0B3AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dfc157;
/* rgb */ color: rgb(223, 193, 87);
/* oklch */ color: oklch(81.6% 0.129 93.5);
Tailwind
colors: {
  custom: {
    50: '#ecd38a',
    500: '#dfc157',
    950: '#000000',
  },
}
SCSS
$custom: #dfc157;
$custom-light: #ecd38a;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc157",
  "rgb": {
    "r": 223,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 46.765,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.81646,
    "c": 0.1292,
    "h": 93.5
  },
  "luminance": 0.54516
}

Semantic roles & 50–950 ramp

primary
#DFC157
secondary
#3950A1
accent
#3FD016
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #DFC157

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

Preview Lab → · Contrast checker → · Palette generator →

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