#DFC252#DFC252

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

Color values

HEX#DFC252
RGBrgb(223, 194, 82)
HSLhsl(48, 69%, 60%)
HSVhsv(48, 63%, 87%)
CMYKcmyk(0%, 13%, 63.2%, 12.5%)
CIE-LABlab(78.97, -2.41, 58.48)
CIE-LCHlch(78.97, 58.53, 92.36°)
OKLaboklab(81.8% -0.011 0.1335)
OKLCHoklch(81.8% 0.134 94.7)
XYZxyz(51.2485, 54.8833, 15.8751)
Luminance0.5488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC252 #526FDF
analogous
#DF7C52 #DFC252 #B5DF52
triadic
#DFC252 #52DFC2 #C252DF
tetradic
#DFC252 #52DF7C #526FDF #DF52B5
square
#DFC252 #52DF7C #526FDF #DF52B5
split-complementary
#DFC252 #52B5DF #7C52DF
monochromatic
#9A801D #CEAB26 #DFC252 #E9D486 #F2E6B9

Accessibility & contrast

On white

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

On black

11.98
#DFC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC252
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC252#FFFFFF#000000##000000
##DFC2521.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dfc252;
/* rgb */ color: rgb(223, 194, 82);
/* oklch */ color: oklch(81.8% 0.134 94.7);
Tailwind
colors: {
  custom: {
    50: '#ecd487',
    500: '#dfc252',
    950: '#000000',
  },
}
SCSS
$custom: #dfc252;
$custom-light: #ecd487;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc252",
  "rgb": {
    "r": 223,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 47.66,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.81798,
    "c": 0.13394,
    "h": 94.7
  },
  "luminance": 0.54881
}

Semantic roles & 50–950 ramp

primary
#DFC252
secondary
#374C9E
accent
#60EC3C
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #DFC252

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

Preview Lab → · Contrast checker → · Palette generator →

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