#DFD040#DFD040

#DFD040 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.5% C 0.158 H 103.3°. Best body text is #000000 at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#DFD040
RGBrgb(223, 208, 64)
HSLhsl(54, 71%, 56%)
HSVhsv(54, 71%, 87%)
CMYKcmyk(0%, 6.7%, 71.3%, 12.5%)
CIE-LABlab(82.47, -10.55, 69.27)
CIE-LCHlch(82.47, 70.07, 98.66°)
OKLaboklab(84.53% -0.0361 0.1534)
OKLCHoklch(84.53% 0.158 103.3)
XYZxyz(53.9150, 61.1721, 13.8169)
Luminance0.6117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD040 #404FDF
analogous
#DF8140 #DFD040 #9EDF40
triadic
#DFD040 #40DFD0 #D040DF
tetradic
#DFD040 #40DF81 #404FDF #DF409E
square
#DFD040 #40DF81 #404FDF #DF409E
split-complementary
#DFD040 #409EDF #8140DF
monochromatic
#8D8218 #C1B220 #DFD040 #E8DD74 #F1EAA9

Accessibility & contrast

On white

1.59
#DFD040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.23
#DFD040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD040
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD040#FFFFFF#000000##000000
##DFD0401.001.5913.2313.23
#FFFFFF1.591.0021.0021.00
#00000013.2321.001.001.00
##00000013.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E7D04A
Tritanopia (blue-blind)
#F0C2B4
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #dfd040;
/* rgb */ color: rgb(223, 208, 64);
/* oklch */ color: oklch(84.5% 0.158 103.3);
Tailwind
colors: {
  custom: {
    50: '#edde7e',
    500: '#dfd040',
    950: '#000000',
  },
}
SCSS
$custom: #dfd040;
$custom-light: #edde7e;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd040",
  "rgb": {
    "r": 223,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 54.34,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.84528,
    "c": 0.15759,
    "h": 103.3
  },
  "luminance": 0.6117
}

Semantic roles & 50–950 ramp

primary
#DFD040
secondary
#313A92
accent
#4BEE3A
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DFD040

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

Preview Lab → · Contrast checker → · Palette generator →

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