#6B1A96#6B1A96

#6B1A96 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.188 H 309.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#6B1A96
RGBrgb(107, 26, 150)
HSLhsl(279, 70%, 35%)
HSVhsv(279, 83%, 59%)
CMYKcmyk(28.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(29.58, 53.92, -50.67)
CIE-LCHlch(29.58, 73.99, 316.78°)
OKLaboklab(41.75% 0.1204 -0.1439)
OKLCHoklch(41.75% 0.188 309.9)
XYZxyz(11.9367, 6.0669, 29.3905)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1A96 #45961A
analogous
#2D1A96 #6B1A96 #961A83
triadic
#6B1A96 #966B1A #1A966B
tetradic
#6B1A96 #962D1A #45961A #1A8396
square
#6B1A96 #962D1A #45961A #1A8396
split-complementary
#6B1A96 #83961A #1A962D
monochromatic
#21082E #461162 #6B1A96 #9023CA #AC4BE0

Accessibility & contrast

On white

9.49
#6B1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6B1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1A96
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1A96#FFFFFF#000000##FFFFFF
##6B1A961.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#653B59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b1a96;
/* rgb */ color: rgb(107, 26, 150);
/* oklch */ color: oklch(41.7% 0.188 309.9);
Tailwind
colors: {
  custom: {
    50: '#9a62b6',
    500: '#6b1a96',
    950: '#000000',
  },
}
SCSS
$custom: #6b1a96;
$custom-light: #9a62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1a96",
  "rgb": {
    "r": 107,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 279.194,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41749,
    "c": 0.1876,
    "h": 309.9
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#6B1A96
secondary
#74C24A
accent
#ED3B79
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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