#6C167E#6C167E

#6C167E is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.7% C 0.170 H 319.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#6C167E
RGBrgb(108, 22, 126)
HSLhsl(290, 70%, 29%)
HSVhsv(290, 83%, 49%)
CMYKcmyk(14.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(27.49, 50.44, -39.11)
CIE-LCHlch(27.49, 63.83, 322.21°)
OKLaboklab(39.74% 0.1299 -0.1099)
OKLCHoklch(39.74% 0.17 319.8)
XYZxyz(10.2367, 5.2689, 20.2124)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C167E #287E16
analogous
#38167E #6C167E #7E165C
triadic
#6C167E #7E6C16 #167E6C
tetradic
#6C167E #7E3816 #287E16 #165C7E
square
#6C167E #7E3816 #287E16 #165C7E
split-complementary
#6C167E #5C7E16 #167E38
monochromatic
#16051A #3F0D4A #6C167E #991FB2 #BE33DB

Accessibility & contrast

On white

10.23
#6C167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#6C167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C167E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C167E#FFFFFF#000000##FFFFFF
##6C167E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#20447C
Tritanopia (blue-blind)
#6C2D4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c167e;
/* rgb */ color: rgb(108, 22, 126);
/* oklch */ color: oklch(39.7% 0.170 319.8);
Tailwind
colors: {
  custom: {
    50: '#9a5fa4',
    500: '#6c167e',
    950: '#000000',
  },
}
SCSS
$custom: #6c167e;
$custom-light: #9a5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c167e",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 289.615,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39741,
    "c": 0.17011,
    "h": 319.8
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#6C167E
secondary
#51B33D
accent
#ED3B5A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C167E

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

Preview Lab → · Contrast checker → · Palette generator →

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