#6C158D#6C158D

#6C158D is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.8% C 0.184 H 313.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#6C158D
RGBrgb(108, 21, 141)
HSLhsl(284, 74%, 32%)
HSVhsv(284, 85%, 55%)
CMYKcmyk(23.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(28.51, 53.72, -46.85)
CIE-LCHlch(28.51, 71.28, 318.91°)
OKLaboklab(40.81% 0.1277 -0.1326)
OKLCHoklch(40.81% 0.184 313.9)
XYZxyz(11.2594, 5.6480, 25.6912)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C158D #368D15
analogous
#30158D #6C158D #8D1572
triadic
#6C158D #8D6C15 #158D6C
tetradic
#6C158D #8D3015 #368D15 #15728D
square
#6C158D #8D3015 #368D15 #15728D
split-complementary
#6C158D #728D15 #158D30
monochromatic
#1A0522 #430D58 #6C158D #951DC2 #B43BE2

Accessibility & contrast

On white

9.86
#6C158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6C158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C158D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C158D#FFFFFF#000000##FFFFFF
##6C158D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#03458B
Tritanopia (blue-blind)
#693453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c158d;
/* rgb */ color: rgb(108, 21, 141);
/* oklch */ color: oklch(40.8% 0.184 313.9);
Tailwind
colors: {
  custom: {
    50: '#9b60af',
    500: '#6c158d',
    950: '#000000',
  },
}
SCSS
$custom: #6c158d;
$custom-light: #9b60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6c158d",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 283.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40808,
    "c": 0.18405,
    "h": 313.9
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#6C158D
secondary
#61C13D
accent
#F1376A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C158D

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

Preview Lab → · Contrast checker → · Palette generator →

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