#D6C842#D6C842

#D6C842 is a very light, vivid yellow. Relative luminance 0.560; OKLCH L 82.1% C 0.150 H 103.3°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#D6C842
RGBrgb(214, 200, 66)
HSLhsl(54, 64%, 55%)
HSVhsv(54, 69%, 84%)
CMYKcmyk(0%, 6.5%, 69.2%, 16.1%)
CIE-LABlab(79.61, -10.20, 65.46)
CIE-LCHlch(79.61, 66.25, 98.86°)
OKLaboklab(82.08% -0.0345 0.146)
OKLCHoklch(82.08% 0.15 103.3)
XYZxyz(49.3713, 56.0000, 13.3617)
Luminance0.5600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6C842 #4250D6
analogous
#D67E42 #D6C842 #9AD642
triadic
#D6C842 #42D6C8 #C842D6
tetradic
#D6C842 #42D67E #4250D6 #D6429A
square
#D6C842 #42D67E #4250D6 #D6429A
split-complementary
#D6C842 #429AD6 #7E42D6
monochromatic
#82781C #B4A627 #D6C842 #E1D774 #ECE5A7

Accessibility & contrast

On white

1.72
#D6C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.20
#D6C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6C842
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6C842#FFFFFF#000000##000000
##D6C8421.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22E
Deuteranopia (green-blind)
#DEC84B
Tritanopia (blue-blind)
#E6BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d6c842;
/* rgb */ color: rgb(214, 200, 66);
/* oklch */ color: oklch(82.1% 0.150 103.3);
Tailwind
colors: {
  custom: {
    50: '#e6d87e',
    500: '#d6c842',
    950: '#000000',
  },
}
SCSS
$custom: #d6c842;
$custom-light: #e6d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d6c842",
  "rgb": {
    "r": 214,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 54.324,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.82076,
    "c": 0.15,
    "h": 103.3
  },
  "luminance": 0.55998
}

Semantic roles & 50–950 ramp

primary
#D6C842
secondary
#343C88
accent
#50E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D6C842

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

Preview Lab → · Contrast checker → · Palette generator →

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