#6C1B97#6C1B97

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

Color values

HEX#6C1B97
RGBrgb(108, 27, 151)
HSLhsl(279, 70%, 35%)
HSVhsv(279, 82%, 59%)
CMYKcmyk(28.5%, 82.1%, 0%, 40.8%)
CIE-LABlab(29.93, 53.99, -50.71)
CIE-LCHlch(29.93, 74.07, 316.79°)
OKLaboklab(42.05% 0.1208 -0.144)
OKLCHoklch(42.05% 0.188 310)
XYZxyz(12.1611, 6.2066, 29.8295)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1B97 #46971B
analogous
#2E1B97 #6C1B97 #971B84
triadic
#6C1B97 #976C1B #1B976C
tetradic
#6C1B97 #972E1B #46971B #1B8497
square
#6C1B97 #972E1B #46971B #1B8497
split-complementary
#6C1B97 #84971B #1B972E
monochromatic
#22082F #471263 #6C1B97 #9124CB #AD4DDF

Accessibility & contrast

On white

9.37
#6C1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C1B97
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1B97#FFFFFF#000000##FFFFFF
##6C1B971.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c1b97;
/* rgb */ color: rgb(108, 27, 151);
/* oklch */ color: oklch(42.0% 0.188 310.0);
Tailwind
colors: {
  custom: {
    50: '#9b63b6',
    500: '#6c1b97',
    950: '#000000',
  },
}
SCSS
$custom: #6c1b97;
$custom-light: #9b63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1b97",
  "rgb": {
    "r": 108,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 279.194,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42048,
    "c": 0.18792,
    "h": 310
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#6C1B97
secondary
#75C14C
accent
#EC3B79
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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