#6B1F96#6B1F96

#6B1F96 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.183 H 309.5°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#6B1F96
RGBrgb(107, 31, 150)
HSLhsl(278, 66%, 35%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(28.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(30.18, 52.19, -49.70)
CIE-LCHlch(30.18, 72.07, 316.40°)
OKLaboklab(42.17% 0.1164 -0.1411)
OKLCHoklch(42.17% 0.183 309.5)
XYZxyz(12.0573, 6.3080, 29.4306)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F96 #4A961F
analogous
#2F1F96 #6B1F96 #961F86
triadic
#6B1F96 #966B1F #1F966B
tetradic
#6B1F96 #962F1F #4A961F #1F8696
square
#6B1F96 #962F1F #4A961F #1F8696
split-complementary
#6B1F96 #86961F #1F962F
monochromatic
#230A31 #471563 #6B1F96 #8F29C9 #AB54DC

Accessibility & contrast

On white

9.29
#6B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F96
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F96#FFFFFF#000000##FFFFFF
##6B1F961.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#653D5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1f96;
/* rgb */ color: rgb(107, 31, 150);
/* oklch */ color: oklch(42.2% 0.183 309.5);
Tailwind
colors: {
  custom: {
    50: '#9a64b6',
    500: '#6b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f96;
$custom-light: #9a64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f96",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 278.319,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.18286,
    "h": 309.5
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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