#D6C642#D6C642

#D6C642 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.7% C 0.148 H 102.3°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D6C642
RGBrgb(214, 198, 66)
HSLhsl(54, 64%, 55%)
HSVhsv(54, 69%, 84%)
CMYKcmyk(0%, 7.5%, 69.2%, 16.1%)
CIE-LABlab(79.09, -9.18, 64.94)
CIE-LCHlch(79.09, 65.58, 98.05°)
OKLaboklab(81.66% -0.0316 0.1449)
OKLCHoklch(81.66% 0.148 102.3)
XYZxyz(48.9111, 55.0797, 13.2083)
Luminance0.5508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6C642 #4252D6
analogous
#D67C42 #D6C642 #9CD642
triadic
#D6C642 #42D6C6 #C642D6
tetradic
#D6C642 #42D67C #4252D6 #D6429C
square
#D6C642 #42D67C #4252D6 #D6429C
split-complementary
#D6C642 #429CD6 #7C42D6
monochromatic
#82771C #B4A527 #D6C642 #E1D574 #ECE4A7

Accessibility & contrast

On white

1.75
#D6C642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#D6C642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6C642
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6C642#FFFFFF#000000##000000
##D6C6421.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DDC74A
Tritanopia (blue-blind)
#E6B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d6c642;
/* rgb */ color: rgb(214, 198, 66);
/* oklch */ color: oklch(81.7% 0.148 102.3);
Tailwind
colors: {
  custom: {
    50: '#e6d67e',
    500: '#d6c642',
    950: '#000000',
  },
}
SCSS
$custom: #d6c642;
$custom-light: #e6d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d6c642",
  "rgb": {
    "r": 214,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 53.514,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.81658,
    "c": 0.14828,
    "h": 102.3
  },
  "luminance": 0.55078
}

Semantic roles & 50–950 ramp

primary
#D6C642
secondary
#343D88
accent
#52E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D6C642

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

Preview Lab → · Contrast checker → · Palette generator →

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