#6B166A#6B166A

#6B166A is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.153 H 328.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#6B166A
RGBrgb(107, 22, 106)
HSLhsl(301, 66%, 25%)
HSVhsv(301, 79%, 42%)
CMYKcmyk(0%, 79.4%, 0.9%, 58%)
CIE-LABlab(25.98, 46.53, -28.74)
CIE-LCHlch(25.98, 54.69, 328.29°)
OKLaboklab(38.22% 0.1304 -0.0796)
OKLCHoklch(38.22% 0.153 328.6)
XYZxyz(8.9517, 4.7409, 14.0765)
Luminance0.0474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B166A #166B17
analogous
#41166B #6B166A #6B163F
triadic
#6B166A #6A6B16 #166A6B
tetradic
#6B166A #6B4116 #166B17 #163F6B
square
#6B166A #6B4116 #166B17 #163F6B
split-complementary
#6B166A #3F6B16 #166B41
monochromatic
#190519 #380C38 #6B166A #9E209C #D12BCF

Accessibility & contrast

On white

10.78
#6B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#6B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B166A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B166A#FFFFFF#000000##FFFFFF
##6B166A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04366C
Deuteranopia (green-blind)
#2F4168
Tritanopia (blue-blind)
#6F233F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6b166a;
/* rgb */ color: rgb(107, 22, 106);
/* oklch */ color: oklch(38.2% 0.153 328.6);
Tailwind
colors: {
  custom: {
    50: '#995e95',
    500: '#6b166a',
    950: '#000000',
  },
}
SCSS
$custom: #6b166a;
$custom-light: #995e95;
$custom-dark: #000000;
JSON
{
  "hex": "#6b166a",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 300.706,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.15275,
    "h": 328.6
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#6B166A
secondary
#3BA13D
accent
#E9413F
background
#F9F5F9
surface
#F2EAF1
border
#CCC6CB
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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