#D6C939#D6C939

#D6C939 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.2% C 0.156 H 104.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D6C939
RGBrgb(214, 201, 57)
HSLhsl(55, 66%, 53%)
HSVhsv(55, 73%, 84%)
CMYKcmyk(0%, 6.1%, 73.4%, 16.1%)
CIE-LABlab(79.82, -11.13, 68.92)
CIE-LCHlch(79.82, 69.82, 99.17°)
OKLaboklab(82.22% -0.038 0.1517)
OKLCHoklch(82.22% 0.156 104.1)
XYZxyz(49.3589, 56.3668, 12.1500)
Luminance0.5636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6C939 #3946D6
analogous
#D67A39 #D6C939 #94D639
triadic
#D6C939 #39D6C9 #C939D6
tetradic
#D6C939 #39D67A #3946D6 #D63994
square
#D6C939 #39D67A #3946D6 #D63994
split-complementary
#D6C939 #3994D6 #7A39D6
monochromatic
#7B7319 #AEA224 #D6C939 #E0D76C #EBE59E

Accessibility & contrast

On white

1.71
#D6C939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D6C939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6C939
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6C939#FFFFFF#000000##000000
##D6C9391.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21D
Deuteranopia (green-blind)
#DFC943
Tritanopia (blue-blind)
#E6BBAD
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d6c939;
/* rgb */ color: rgb(214, 201, 57);
/* oklch */ color: oklch(82.2% 0.156 104.1);
Tailwind
colors: {
  custom: {
    50: '#e7d97a',
    500: '#d6c939',
    950: '#000000',
  },
}
SCSS
$custom: #d6c939;
$custom-light: #e7d97a;
$custom-dark: #000000;
JSON
{
  "hex": "#d6c939",
  "rgb": {
    "r": 214,
    "g": 201,
    "b": 57
  },
  "hsl": {
    "h": 55.032,
    "s": 65.69,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82224,
    "c": 0.15639,
    "h": 104.1
  },
  "luminance": 0.56365
}

Semantic roles & 50–950 ramp

primary
#D6C939
secondary
#303783
accent
#4DE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D6C939

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

Preview Lab → · Contrast checker → · Palette generator →

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