#6C167A#6C167A

#6C167A is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.167 H 321.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#6C167A
RGBrgb(108, 22, 122)
HSLhsl(292, 69%, 28%)
HSVhsv(292, 82%, 48%)
CMYKcmyk(11.5%, 82%, 0%, 52.2%)
CIE-LABlab(27.21, 49.68, -37.03)
CIE-LCHlch(27.21, 61.96, 323.30°)
OKLaboklab(39.45% 0.1304 -0.1038)
OKLCHoklch(39.45% 0.167 321.5)
XYZxyz(9.9837, 5.1677, 18.8802)
Luminance0.0517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C167A #247A16
analogous
#3A167A #6C167A #7A1656
triadic
#6C167A #7A6C16 #167A6C
tetradic
#6C167A #7A3A16 #247A16 #16567A
square
#6C167A #7A3A16 #247A16 #16567A
split-complementary
#6C167A #567A16 #167A3A
monochromatic
#17051A #3E0D46 #6C167A #9A1FAE #C231DA

Accessibility & contrast

On white

10.33
#6C167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#6C167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C167A
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C167A#FFFFFF#000000##FFFFFF
##6C167A1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#244378
Tritanopia (blue-blind)
#6D2B48
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6c167a;
/* rgb */ color: rgb(108, 22, 122);
/* oklch */ color: oklch(39.5% 0.167 321.5);
Tailwind
colors: {
  custom: {
    50: '#9a5fa1',
    500: '#6c167a',
    950: '#000000',
  },
}
SCSS
$custom: #6c167a;
$custom-light: #9a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c167a",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 291.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39454,
    "c": 0.16666,
    "h": 321.5
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#6C167A
secondary
#4DAF3D
accent
#EC3C54
background
#F9F5FA
surface
#F2EAF3
border
#CCC6CD
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C167A

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

Preview Lab → · Contrast checker → · Palette generator →

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