#6B166F#6B166F

#6B166F is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.5% C 0.157 H 326.1°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#6B166F
RGBrgb(107, 22, 111)
HSLhsl(297, 67%, 26%)
HSVhsv(297, 80%, 44%)
CMYKcmyk(3.6%, 80.2%, 0%, 56.5%)
CIE-LABlab(26.30, 47.42, -31.47)
CIE-LCHlch(26.30, 56.91, 326.43°)
OKLaboklab(38.54% 0.1302 -0.0876)
OKLCHoklch(38.54% 0.157 326.1)
XYZxyz(9.2194, 4.8480, 15.4860)
Luminance0.0485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B166F #1A6F16
analogous
#3E166F #6B166F #6F1646
triadic
#6B166F #6F6B16 #166F6B
tetradic
#6B166F #6F3E16 #1A6F16 #16466F
square
#6B166F #6F3E16 #1A6F16 #16466F
split-complementary
#6B166F #466F16 #166F3E
monochromatic
#19051A #3A0C3C #6B166F #9C20A2 #CD2BD5

Accessibility & contrast

On white

10.66
#6B166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B166F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B166F#FFFFFF#000000##FFFFFF
##6B166F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#2C426D
Tritanopia (blue-blind)
#6E2642
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6b166f;
/* rgb */ color: rgb(107, 22, 111);
/* oklch */ color: oklch(38.5% 0.157 326.1);
Tailwind
colors: {
  custom: {
    50: '#995e99',
    500: '#6b166f',
    950: '#000000',
  },
}
SCSS
$custom: #6b166f;
$custom-light: #995e99;
$custom-dark: #000000;
JSON
{
  "hex": "#6b166f",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 297.303,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3854,
    "c": 0.1569,
    "h": 326.1
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#6B166F
secondary
#40A53C
accent
#EA3E46
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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