#6C159E#6C159E

#6C159E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.2% C 0.199 H 308.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#6C159E
RGBrgb(108, 21, 158)
HSLhsl(278, 77%, 35%)
HSVhsv(278, 87%, 62%)
CMYKcmyk(31.6%, 86.7%, 0%, 38%)
CIE-LABlab(29.89, 57.28, -55.04)
CIE-LCHlch(29.89, 79.43, 316.14°)
OKLaboklab(42.21% 0.1229 -0.1567)
OKLCHoklch(42.21% 0.199 308.1)
XYZxyz(12.6228, 6.1933, 32.8716)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C159E #479E15
analogous
#27159E #6C159E #9E158C
triadic
#6C159E #9E6C15 #159E6C
tetradic
#6C159E #9E2715 #479E15 #158C9E
square
#6C159E #9E2715 #479E15 #158C9E
split-complementary
#6C159E #8C9E15 #159E27
monochromatic
#220732 #470E68 #6C159E #911CD4 #AC47E7

Accessibility & contrast

On white

9.38
#6C159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6C159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C159E
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C159E#FFFFFF#000000##FFFFFF
##6C159E1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#643C5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c159e;
/* rgb */ color: rgb(108, 21, 158);
/* oklch */ color: oklch(42.2% 0.199 308.1);
Tailwind
colors: {
  custom: {
    50: '#9c61bc',
    500: '#6c159e',
    950: '#000000',
  },
}
SCSS
$custom: #6c159e;
$custom-light: #9c61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c159e",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 278.102,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.19911,
    "h": 308.1
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#6C159E
secondary
#76C747
accent
#F3357A
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C159E

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

Preview Lab → · Contrast checker → · Palette generator →

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