#6C158A#6C158A

#6C158A is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.181 H 315.0°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#6C158A
RGBrgb(108, 21, 138)
HSLhsl(285, 74%, 31%)
HSVhsv(285, 85%, 54%)
CMYKcmyk(21.7%, 84.8%, 0%, 45.9%)
CIE-LABlab(28.27, 53.12, -45.36)
CIE-LCHlch(28.27, 69.85, 319.50°)
OKLaboklab(40.57% 0.1284 -0.1282)
OKLCHoklch(40.57% 0.181 315)
XYZxyz(11.0392, 5.5599, 24.5315)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C158A #338A15
analogous
#31158A #6C158A #8A156D
triadic
#6C158A #8A6C15 #158A6C
tetradic
#6C158A #8A3115 #338A15 #156D8A
square
#6C158A #8A3115 #338A15 #156D8A
split-complementary
#6C158A #6D8A15 #158A31
monochromatic
#190520 #420D55 #6C158A #961DBF #B639E1

Accessibility & contrast

On white

9.94
#6C158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6C158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C158A
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C158A#FFFFFF#000000##FFFFFF
##6C158A1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#0C4588
Tritanopia (blue-blind)
#693351
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c158a;
/* rgb */ color: rgb(108, 21, 138);
/* oklch */ color: oklch(40.6% 0.181 315.0);
Tailwind
colors: {
  custom: {
    50: '#9a60ad',
    500: '#6c158a',
    950: '#000000',
  },
}
SCSS
$custom: #6c158a;
$custom-light: #9a60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c158a",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 284.615,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.18142,
    "h": 315
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#6C158A
secondary
#5EBE3D
accent
#F03867
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C158A

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

Preview Lab → · Contrast checker → · Palette generator →

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