#6C157E#6C157E

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

Color values

HEX#6C157E
RGBrgb(108, 21, 126)
HSLhsl(290, 71%, 29%)
HSVhsv(290, 83%, 49%)
CMYKcmyk(14.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(27.38, 50.74, -39.28)
CIE-LCHlch(27.38, 64.17, 322.26°)
OKLaboklab(39.67% 0.1306 -0.1104)
OKLCHoklch(39.67% 0.171 319.8)
XYZxyz(10.2179, 5.2314, 20.2062)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C157E #277E15
analogous
#38157E #6C157E #7E155C
triadic
#6C157E #7E6C15 #157E6C
tetradic
#6C157E #7E3815 #277E15 #155C7E
square
#6C157E #7E3815 #277E15 #155C7E
split-complementary
#6C157E #5C7E15 #157E38
monochromatic
#16041A #3F0C4A #6C157E #991EB2 #BF31DD

Accessibility & contrast

On white

10.26
#6C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C157E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C157E#FFFFFF#000000##FFFFFF
##6C157E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#1F437C
Tritanopia (blue-blind)
#6C2D4A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c157e;
/* rgb */ color: rgb(108, 21, 126);
/* oklch */ color: oklch(39.7% 0.171 319.8);
Tailwind
colors: {
  custom: {
    50: '#9a5fa4',
    500: '#6c157e',
    950: '#000000',
  },
}
SCSS
$custom: #6c157e;
$custom-light: #9a5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c157e",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 289.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39668,
    "c": 0.17102,
    "h": 319.8
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#6C157E
secondary
#50B33C
accent
#EE3A59
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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