#DFC251#DFC251

#DFC251 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.8% C 0.135 H 94.8°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#DFC251
RGBrgb(223, 194, 81)
HSLhsl(48, 69%, 60%)
HSVhsv(48, 64%, 87%)
CMYKcmyk(0%, 13%, 63.7%, 12.5%)
CIE-LABlab(78.97, -2.47, 58.91)
CIE-LCHlch(78.97, 58.96, 92.40°)
OKLaboklab(81.79% -0.0113 0.1343)
OKLCHoklch(81.79% 0.135 94.8)
XYZxyz(51.2108, 54.8682, 15.6762)
Luminance0.5487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC251 #516EDF
analogous
#DF7B51 #DFC251 #B5DF51
triadic
#DFC251 #51DFC2 #C251DF
tetradic
#DFC251 #51DF7B #516EDF #DF51B5
square
#DFC251 #51DF7B #516EDF #DF51B5
split-complementary
#DFC251 #51B5DF #7B51DF
monochromatic
#99801C #CDAB26 #DFC251 #E9D485 #F2E6B8

Accessibility & contrast

On white

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

On black

11.97
#DFC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC251
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC251#FFFFFF#000000##000000
##DFC2511.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE44
Deuteranopia (green-blind)
#DCC756
Tritanopia (blue-blind)
#F0B4AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dfc251;
/* rgb */ color: rgb(223, 194, 81);
/* oklch */ color: oklch(81.8% 0.135 94.8);
Tailwind
colors: {
  custom: {
    50: '#ecd487',
    500: '#dfc251',
    950: '#000000',
  },
}
SCSS
$custom: #dfc251;
$custom-light: #ecd487;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc251",
  "rgb": {
    "r": 223,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 47.746,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81788,
    "c": 0.13472,
    "h": 94.8
  },
  "luminance": 0.54866
}

Semantic roles & 50–950 ramp

primary
#DFC251
secondary
#374C9D
accent
#60EC3C
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140B
muted
#85837E

Preview Lab

Preview with #DFC251

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

Preview Lab → · Contrast checker → · Palette generator →

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