#6C1A97#6C1A97

#6C1A97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.189 H 310.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#6C1A97
RGBrgb(108, 26, 151)
HSLhsl(279, 71%, 35%)
HSVhsv(279, 83%, 59%)
CMYKcmyk(28.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(29.82, 54.31, -50.89)
CIE-LCHlch(29.82, 74.43, 316.86°)
OKLaboklab(41.97% 0.1215 -0.1445)
OKLCHoklch(41.97% 0.189 310.1)
XYZxyz(12.1385, 6.1616, 29.8220)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1A97 #45971A
analogous
#2E1A97 #6C1A97 #971A84
triadic
#6C1A97 #976C1A #1A976C
tetradic
#6C1A97 #972E1A #45971A #1A8497
square
#6C1A97 #972E1A #45971A #1A8497
split-complementary
#6C1A97 #84971A #1A972E
monochromatic
#21082F #471163 #6C1A97 #9123CB #AD4BE0

Accessibility & contrast

On white

9.41
#6C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1A97
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1A97#FFFFFF#000000##FFFFFF
##6C1A971.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#663B5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c1a97;
/* rgb */ color: rgb(108, 26, 151);
/* oklch */ color: oklch(42.0% 0.189 310.1);
Tailwind
colors: {
  custom: {
    50: '#9b62b6',
    500: '#6c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #6c1a97;
$custom-light: #9b62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1a97",
  "rgb": {
    "r": 108,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 279.36,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41971,
    "c": 0.18881,
    "h": 310.1
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#6C1A97
secondary
#74C24B
accent
#ED3A78
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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