#6B1B97#6B1B97

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

Color values

HEX#6B1B97
RGBrgb(107, 27, 151)
HSLhsl(279, 70%, 35%)
HSVhsv(279, 82%, 59%)
CMYKcmyk(29.1%, 82.1%, 0%, 40.8%)
CIE-LABlab(29.77, 53.81, -50.97)
CIE-LCHlch(29.77, 74.12, 316.56°)
OKLaboklab(41.91% 0.1194 -0.1448)
OKLCHoklch(41.91% 0.188 309.5)
XYZxyz(12.0401, 6.1443, 29.8239)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1B97 #47971B
analogous
#2D1B97 #6B1B97 #971B85
triadic
#6B1B97 #976B1B #1B976B
tetradic
#6B1B97 #972D1B #47971B #1B8597
square
#6B1B97 #972D1B #47971B #1B8597
split-complementary
#6B1B97 #85971B #1B972D
monochromatic
#21082F #461263 #6B1B97 #9024CB #AB4DDF

Accessibility & contrast

On white

9.42
#6B1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1B97
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1B97#FFFFFF#000000##FFFFFF
##6B1B971.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1b97;
/* rgb */ color: rgb(107, 27, 151);
/* oklch */ color: oklch(41.9% 0.188 309.5);
Tailwind
colors: {
  custom: {
    50: '#9a63b6',
    500: '#6b1b97',
    950: '#000000',
  },
}
SCSS
$custom: #6b1b97;
$custom-light: #9a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1b97",
  "rgb": {
    "r": 107,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 278.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41909,
    "c": 0.18764,
    "h": 309.5
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#6B1B97
secondary
#76C14C
accent
#EC3B7A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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