#6B166E#6B166E

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

Color values

HEX#6B166E
RGBrgb(107, 22, 110)
HSLhsl(298, 67%, 26%)
HSVhsv(298, 80%, 43%)
CMYKcmyk(2.7%, 80%, 0%, 56.9%)
CIE-LABlab(26.23, 47.24, -30.93)
CIE-LCHlch(26.23, 56.46, 326.78°)
OKLaboklab(38.47% 0.1302 -0.086)
OKLCHoklch(38.47% 0.156 326.6)
XYZxyz(9.1646, 4.8261, 15.1976)
Luminance0.0483 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B166E #196E16
analogous
#3F166E #6B166E #6E1645
triadic
#6B166E #6E6B16 #166E6B
tetradic
#6B166E #6E3F16 #196E16 #16456E
square
#6B166E #6E3F16 #196E16 #16456E
split-complementary
#6B166E #456E16 #166E3F
monochromatic
#19051A #390C3B #6B166E #9D20A1 #CE2AD4

Accessibility & contrast

On white

10.69
#6B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B166E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B166E#FFFFFF#000000##FFFFFF
##6B166E1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#2C426C
Tritanopia (blue-blind)
#6E2641
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6b166e;
/* rgb */ color: rgb(107, 22, 110);
/* oklch */ color: oklch(38.5% 0.156 326.6);
Tailwind
colors: {
  custom: {
    50: '#995e98',
    500: '#6b166e',
    950: '#000000',
  },
}
SCSS
$custom: #6b166e;
$custom-light: #995e98;
$custom-dark: #000000;
JSON
{
  "hex": "#6b166e",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 297.955,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.15606,
    "h": 326.6
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#6B166E
secondary
#3FA43C
accent
#EA3E44
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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