#DFD252#DFD252

#DFD252 is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 85.1% C 0.147 H 103.5°. Best body text is #000000 at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#DFD252
RGBrgb(223, 210, 82)
HSLhsl(54, 69%, 60%)
HSVhsv(54, 63%, 87%)
CMYKcmyk(0%, 5.8%, 63.2%, 12.5%)
CIE-LABlab(83.12, -10.58, 62.94)
CIE-LCHlch(83.12, 63.82, 99.55°)
OKLaboklab(85.09% -0.0343 0.1429)
OKLCHoklch(85.09% 0.147 103.5)
XYZxyz(55.0031, 62.3924, 17.1267)
Luminance0.6239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD252 #525FDF
analogous
#DF8C52 #DFD252 #A6DF52
triadic
#DFD252 #52DFD2 #D252DF
tetradic
#DFD252 #52DF8C #525FDF #DF52A6
square
#DFD252 #52DF8C #525FDF #DF52A6
split-complementary
#DFD252 #52A6DF #8C52DF
monochromatic
#9A8F1D #CEBE26 #DFD252 #E9DF86 #F2EDB9

Accessibility & contrast

On white

1.56
#DFD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.48
#DFD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD252
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD252#FFFFFF#000000##000000
##DFD2521.001.5613.4813.48
#FFFFFF1.561.0021.0021.00
#00000013.4821.001.001.00
##00000013.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB42
Deuteranopia (green-blind)
#E8D259
Tritanopia (blue-blind)
#EFC4B7
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #dfd252;
/* rgb */ color: rgb(223, 210, 82);
/* oklch */ color: oklch(85.1% 0.147 103.5);
Tailwind
colors: {
  custom: {
    50: '#ecdf88',
    500: '#dfd252',
    950: '#000000',
  },
}
SCSS
$custom: #dfd252;
$custom-light: #ecdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd252",
  "rgb": {
    "r": 223,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 54.468,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.85086,
    "c": 0.147,
    "h": 103.5
  },
  "luminance": 0.6239
}

Semantic roles & 50–950 ramp

primary
#DFD252
secondary
#37419E
accent
#4CEC3C
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #DFD252

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

Preview Lab → · Contrast checker → · Palette generator →

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