#DFD540#DFD540

#DFD540 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.6% C 0.162 H 105.5°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#DFD540
RGBrgb(223, 213, 64)
HSLhsl(56, 71%, 56%)
HSVhsv(56, 71%, 87%)
CMYKcmyk(0%, 4.5%, 71.3%, 12.5%)
CIE-LABlab(83.78, -13.05, 70.54)
CIE-LCHlch(83.78, 71.74, 100.48°)
OKLaboklab(85.57% -0.0432 0.1561)
OKLCHoklch(85.57% 0.162 105.5)
XYZxyz(55.1533, 63.6487, 14.2297)
Luminance0.6365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD540 #404ADF
analogous
#DF8640 #DFD540 #9ADF40
triadic
#DFD540 #40DFD5 #D540DF
tetradic
#DFD540 #40DF86 #404ADF #DF409A
square
#DFD540 #40DF86 #404ADF #DF409A
split-complementary
#DFD540 #409ADF #8640DF
monochromatic
#8D8618 #C1B720 #DFD540 #E8E174 #F1ECA9

Accessibility & contrast

On white

1.53
#DFD540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.73
#DFD540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD540
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD540#FFFFFF#000000##000000
##DFD5401.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD26
Deuteranopia (green-blind)
#EBD44B
Tritanopia (blue-blind)
#EFC7B8
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dfd540;
/* rgb */ color: rgb(223, 213, 64);
/* oklch */ color: oklch(85.6% 0.162 105.5);
Tailwind
colors: {
  custom: {
    50: '#ede17f',
    500: '#dfd540',
    950: '#000000',
  },
}
SCSS
$custom: #dfd540;
$custom-light: #ede17f;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd540",
  "rgb": {
    "r": 223,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 56.226,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.85572,
    "c": 0.16194,
    "h": 105.5
  },
  "luminance": 0.63647
}

Semantic roles & 50–950 ramp

primary
#DFD540
secondary
#313792
accent
#45EE3A
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #DFD540

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

Preview Lab → · Contrast checker → · Palette generator →

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