#6C166D#6C166D

#6C166D is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.6% C 0.156 H 327.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#6C166D
RGBrgb(108, 22, 109)
HSLhsl(299, 66%, 26%)
HSVhsv(299, 80%, 43%)
CMYKcmyk(0.9%, 79.8%, 0%, 57.3%)
CIE-LABlab(26.35, 47.28, -30.09)
CIE-LCHlch(26.35, 56.04, 327.53°)
OKLaboklab(38.57% 0.1315 -0.0835)
OKLCHoklch(38.57% 0.156 327.6)
XYZxyz(9.2314, 4.8668, 14.9182)
Luminance0.0487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C166D #176D16
analogous
#40166D #6C166D #6D1642
triadic
#6C166D #6D6C16 #166D6C
tetradic
#6C166D #6D4016 #176D16 #16426D
square
#6C166D #6D4016 #176D16 #16426D
split-complementary
#6C166D #426D16 #166D40
monochromatic
#190519 #3A0C3A #6C166D #9E20A0 #D12BD3

Accessibility & contrast

On white

10.64
#6C166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#6C166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C166D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C166D#FFFFFF#000000##FFFFFF
##6C166D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#2E426B
Tritanopia (blue-blind)
#6F2541
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6c166d;
/* rgb */ color: rgb(108, 22, 109);
/* oklch */ color: oklch(38.6% 0.156 327.6);
Tailwind
colors: {
  custom: {
    50: '#995f97',
    500: '#6c166d',
    950: '#000000',
  },
}
SCSS
$custom: #6c166d;
$custom-light: #995f97;
$custom-dark: #000000;
JSON
{
  "hex": "#6c166d",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 299.31,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38573,
    "c": 0.15573,
    "h": 327.6
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#6C166D
secondary
#3DA33C
accent
#E93E40
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6C166D

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

Preview Lab → · Contrast checker → · Palette generator →

#6C166D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva