#DFD151#DFD151

#DFD151 is a very light, vivid yellow. Relative luminance 0.619; OKLCH L 84.9% C 0.147 H 103.1°. Best body text is #000000 at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#DFD151
RGBrgb(223, 209, 81)
HSLhsl(54, 69%, 60%)
HSVhsv(54, 64%, 87%)
CMYKcmyk(0%, 6.3%, 63.7%, 12.5%)
CIE-LABlab(82.85, -10.14, 63.07)
CIE-LCHlch(82.85, 63.88, 99.14°)
OKLaboklab(84.87% -0.0332 0.1431)
OKLCHoklch(84.87% 0.147 103.1)
XYZxyz(54.7192, 61.8851, 16.8457)
Luminance0.6188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD151 #515FDF
analogous
#DF8A51 #DFD151 #A6DF51
triadic
#DFD151 #51DFD1 #D151DF
tetradic
#DFD151 #51DF8A #515FDF #DF51A6
square
#DFD151 #51DF8A #515FDF #DF51A6
split-complementary
#DFD151 #51A6DF #8A51DF
monochromatic
#998D1C #CDBD26 #DFD151 #E9DF85 #F2ECB8

Accessibility & contrast

On white

1.57
#DFD151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.38
#DFD151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD151
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD151#FFFFFF#000000##000000
##DFD1511.001.5713.3813.38
#FFFFFF1.571.0021.0021.00
#00000013.3821.001.001.00
##00000013.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB41
Deuteranopia (green-blind)
#E7D158
Tritanopia (blue-blind)
#EFC3B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dfd151;
/* rgb */ color: rgb(223, 209, 81);
/* oklch */ color: oklch(84.9% 0.147 103.1);
Tailwind
colors: {
  custom: {
    50: '#ecde88',
    500: '#dfd151',
    950: '#000000',
  },
}
SCSS
$custom: #dfd151;
$custom-light: #ecde88;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd151",
  "rgb": {
    "r": 223,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 54.085,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.84869,
    "c": 0.14686,
    "h": 103.1
  },
  "luminance": 0.61883
}

Semantic roles & 50–950 ramp

primary
#DFD151
secondary
#37419D
accent
#4DEC3C
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #DFD151

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

Preview Lab → · Contrast checker → · Palette generator →

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