#D6D540#D6D540

#D6D540 is a very light, vivid yellow. Relative luminance 0.623; OKLCH L 84.8% C 0.163 H 109.0°. Best body text is #000000 at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#D6D540
RGBrgb(214, 213, 64)
HSLhsl(60, 65%, 55%)
HSVhsv(60, 70%, 84%)
CMYKcmyk(0%, 0.5%, 70.1%, 16.1%)
CIE-LABlab(83.05, -16.81, 69.58)
CIE-LCHlch(83.05, 71.59, 103.59°)
OKLaboklab(84.81% -0.0533 0.1543)
OKLCHoklch(84.81% 0.163 109)
XYZxyz(52.4531, 62.2564, 14.1031)
Luminance0.6226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6D540 #4041D6
analogous
#D68A40 #D6D540 #8CD640
triadic
#D6D540 #40D6D5 #D540D6
tetradic
#D6D540 #40D68A #4041D6 #D6408C
square
#D6D540 #40D68A #4041D6 #D6408C
split-complementary
#D6D540 #408CD6 #8A40D6
monochromatic
#807F1B #B2B226 #D6D540 #E1E072 #ECEBA5

Accessibility & contrast

On white

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

On black

13.45
#D6D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6D540
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6D540#FFFFFF#000000##000000
##D6D5401.001.5613.4513.45
#FFFFFF1.561.0021.0021.00
#00000013.4521.001.001.00
##00000013.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E8D14B
Tritanopia (blue-blind)
#E5C7B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d6d540;
/* rgb */ color: rgb(214, 213, 64);
/* oklch */ color: oklch(84.8% 0.163 109.0);
Tailwind
colors: {
  custom: {
    50: '#e6e17e',
    500: '#d6d540',
    950: '#000000',
  },
}
SCSS
$custom: #d6d540;
$custom-light: #e6e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d6d540",
  "rgb": {
    "r": 214,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 59.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.8481,
    "c": 0.16328,
    "h": 109
  },
  "luminance": 0.62255
}

Semantic roles & 50–950 ramp

primary
#D6D540
secondary
#333487
accent
#41E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D6D540

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

Preview Lab → · Contrast checker → · Palette generator →

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