#6C167F#6C167F

#6C167F is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.171 H 319.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#6C167F
RGBrgb(108, 22, 127)
HSLhsl(289, 70%, 29%)
HSVhsv(289, 83%, 50%)
CMYKcmyk(15%, 82.7%, 0%, 50.2%)
CIE-LABlab(27.56, 50.64, -39.63)
CIE-LCHlch(27.56, 64.30, 321.95°)
OKLaboklab(39.81% 0.1297 -0.1114)
OKLCHoklch(39.81% 0.171 319.3)
XYZxyz(10.3015, 5.2948, 20.5539)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C167F #297F16
analogous
#38167F #6C167F #7F165E
triadic
#6C167F #7F6C16 #167F6C
tetradic
#6C167F #7F3816 #297F16 #165E7F
square
#6C167F #7F3816 #297F16 #165E7F
split-complementary
#6C167F #5E7F16 #167F38
monochromatic
#16051A #400D4B #6C167F #981FB3 #BD34DC

Accessibility & contrast

On white

10.20
#6C167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#6C167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C167F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C167F#FFFFFF#000000##FFFFFF
##6C167F1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#1F447D
Tritanopia (blue-blind)
#6C2E4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c167f;
/* rgb */ color: rgb(108, 22, 127);
/* oklch */ color: oklch(39.8% 0.171 319.3);
Tailwind
colors: {
  custom: {
    50: '#9a5fa5',
    500: '#6c167f',
    950: '#000000',
  },
}
SCSS
$custom: #6c167f;
$custom-light: #9a5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c167f",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 289.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39813,
    "c": 0.17097,
    "h": 319.3
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#6C167F
secondary
#53B43D
accent
#ED3B5B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C167F

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

Preview Lab → · Contrast checker → · Palette generator →

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