#DFC257#DFC257

#DFC257 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.8% C 0.130 H 94.2°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#DFC257
RGBrgb(223, 194, 87)
HSLhsl(47, 68%, 61%)
HSVhsv(47, 61%, 87%)
CMYKcmyk(0%, 13%, 61%, 12.5%)
CIE-LABlab(79.02, -2.09, 56.31)
CIE-LCHlch(79.02, 56.35, 92.12°)
OKLaboklab(81.85% -0.0095 0.1296)
OKLCHoklch(81.85% 0.13 94.2)
XYZxyz(51.4458, 54.9622, 16.9139)
Luminance0.5496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC257 #5774DF
analogous
#DF7E57 #DFC257 #B8DF57
triadic
#DFC257 #57DFC2 #C257DF
tetradic
#DFC257 #57DF7E #5774DF #DF57B8
square
#DFC257 #57DF7E #5774DF #DF57B8
split-complementary
#DFC257 #57B8DF #7E57DF
monochromatic
#9E821E #D1AD28 #DFC257 #E9D58A #F3E7BE

Accessibility & contrast

On white

1.75
#DFC257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#DFC257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC257
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC257#FFFFFF#000000##000000
##DFC2571.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF4C
Deuteranopia (green-blind)
#DCC75C
Tritanopia (blue-blind)
#F0B4AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #dfc257;
/* rgb */ color: rgb(223, 194, 87);
/* oklch */ color: oklch(81.8% 0.130 94.2);
Tailwind
colors: {
  custom: {
    50: '#ecd48a',
    500: '#dfc257',
    950: '#000000',
  },
}
SCSS
$custom: #dfc257;
$custom-light: #ecd48a;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc257",
  "rgb": {
    "r": 223,
    "g": 194,
    "b": 87
  },
  "hsl": {
    "h": 47.206,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.81848,
    "c": 0.1299,
    "h": 94.2
  },
  "luminance": 0.5496
}

Semantic roles & 50–950 ramp

primary
#DFC257
secondary
#394FA1
accent
#3DD016
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #DFC257

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

Preview Lab → · Contrast checker → · Palette generator →

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