#D6D942#D6D942

#D6D942 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 85.7% C 0.166 H 110.6°. Best body text is #000000 at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#D6D942
RGBrgb(214, 217, 66)
HSLhsl(61, 67%, 55%)
HSVhsv(61, 70%, 85%)
CMYKcmyk(1.4%, 0%, 69.6%, 14.9%)
CIE-LABlab(84.13, -18.69, 69.93)
CIE-LCHlch(84.13, 72.38, 104.96°)
OKLaboklab(85.68% -0.0583 0.1554)
OKLCHoklch(85.68% 0.166 110.6)
XYZxyz(53.5296, 64.3166, 14.7478)
Luminance0.6431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6D942 #4542D9
analogous
#D99042 #D6D942 #8AD942
triadic
#D6D942 #42D6D9 #D942D6
tetradic
#D6D942 #42D990 #4542D9 #D9428A
square
#D6D942 #42D990 #4542D9 #D9428A
split-complementary
#D6D942 #428AD9 #9042D9
monochromatic
#84861B #B6B925 #D6D942 #E1E375 #ECEDA8

Accessibility & contrast

On white

1.51
#D6D942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.86
#D6D942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6D942
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6D942#FFFFFF#000000##000000
##D6D9421.001.5113.8613.86
#FFFFFF1.511.0021.0021.00
#00000013.8621.001.001.00
##00000013.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD028
Deuteranopia (green-blind)
#EBD44D
Tritanopia (blue-blind)
#E5CCBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d6d942;
/* rgb */ color: rgb(214, 217, 66);
/* oklch */ color: oklch(85.7% 0.166 110.6);
Tailwind
colors: {
  custom: {
    50: '#e6e480',
    500: '#d6d942',
    950: '#000000',
  },
}
SCSS
$custom: #d6d942;
$custom-light: #e6e480;
$custom-dark: #000000;
JSON
{
  "hex": "#d6d942",
  "rgb": {
    "r": 214,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 61.192,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85677,
    "c": 0.166,
    "h": 110.6
  },
  "luminance": 0.64315
}

Semantic roles & 50–950 ramp

primary
#D6D942
secondary
#35338C
accent
#3EE942
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D6D942

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

Preview Lab → · Contrast checker → · Palette generator →

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