#6C1F97#6C1F97

#6C1F97 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.184 H 309.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#6C1F97
RGBrgb(108, 31, 151)
HSLhsl(279, 66%, 36%)
HSVhsv(279, 79%, 59%)
CMYKcmyk(28.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(30.41, 52.60, -49.93)
CIE-LCHlch(30.41, 72.52, 316.49°)
OKLaboklab(42.38% 0.1175 -0.1417)
OKLCHoklch(42.38% 0.184 309.7)
XYZxyz(12.2591, 6.4027, 29.8622)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1F97 #4A971F
analogous
#301F97 #6C1F97 #971F86
triadic
#6C1F97 #976C1F #1F976C
tetradic
#6C1F97 #97301F #4A971F #1F8697
square
#6C1F97 #97301F #4A971F #1F8697
split-complementary
#6C1F97 #86971F #1F9730
monochromatic
#230A31 #481564 #6C1F97 #9029CA #AB54DC

Accessibility & contrast

On white

9.21
#6C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1F97
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1F97#FFFFFF#000000##FFFFFF
##6C1F971.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#663D5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c1f97;
/* rgb */ color: rgb(108, 31, 151);
/* oklch */ color: oklch(42.4% 0.184 309.7);
Tailwind
colors: {
  custom: {
    50: '#9b64b6',
    500: '#6c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #6c1f97;
$custom-light: #9b64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1f97",
  "rgb": {
    "r": 108,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 278.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42383,
    "c": 0.18411,
    "h": 309.7
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#6C1F97
secondary
#79BF52
accent
#E93F7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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