#DFC54F#DFC54F

#DFC54F is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.4% C 0.138 H 96.8°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#DFC54F
RGBrgb(223, 197, 79)
HSLhsl(49, 69%, 59%)
HSVhsv(49, 65%, 87%)
CMYKcmyk(0%, 11.7%, 64.6%, 12.5%)
CIE-LABlab(79.72, -4.14, 60.58)
CIE-LCHlch(79.72, 60.72, 93.91°)
OKLaboklab(82.38% -0.0163 0.1375)
OKLCHoklch(82.38% 0.138 96.8)
XYZxyz(51.8113, 56.1875, 15.5118)
Luminance0.5618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC54F #4F69DF
analogous
#DF7D4F #DFC54F #B1DF4F
triadic
#DFC54F #4FDFC5 #C54FDF
tetradic
#DFC54F #4FDF7D #4F69DF #DF4FB1
square
#DFC54F #4FDF7D #4F69DF #DF4FB1
split-complementary
#DFC54F #4FB1DF #7D4FDF
monochromatic
#98821C #CCAE25 #DFC54F #E8D683 #F2E7B7

Accessibility & contrast

On white

1.72
#DFC54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#DFC54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC54F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC54F#FFFFFF#000000##000000
##DFC54F1.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C141
Deuteranopia (green-blind)
#DEC955
Tritanopia (blue-blind)
#F0B7AC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #dfc54f;
/* rgb */ color: rgb(223, 197, 79);
/* oklch */ color: oklch(82.4% 0.138 96.8);
Tailwind
colors: {
  custom: {
    50: '#ecd686',
    500: '#dfc54f',
    950: '#000000',
  },
}
SCSS
$custom: #dfc54f;
$custom-light: #ecd686;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc54f",
  "rgb": {
    "r": 223,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 49.167,
    "s": 69.231,
    "l": 59.216
  },
  "oklch": {
    "l": 0.8238,
    "c": 0.13845,
    "h": 96.8
  },
  "luminance": 0.56185
}

Semantic roles & 50–950 ramp

primary
#DFC54F
secondary
#36499C
accent
#5CEC3C
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DFC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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