#6B1B9B#6B1B9B

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

Color values

HEX#6B1B9B
RGBrgb(107, 27, 155)
HSLhsl(278, 70%, 36%)
HSVhsv(278, 83%, 61%)
CMYKcmyk(31%, 82.6%, 0%, 39.2%)
CIE-LABlab(30.10, 54.68, -52.88)
CIE-LCHlch(30.10, 76.07, 315.96°)
OKLaboklab(42.24% 0.1183 -0.1504)
OKLCHoklch(42.24% 0.191 308.2)
XYZxyz(12.3705, 6.2764, 31.5638)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1B9B #4B9B1B
analogous
#2B1B9B #6B1B9B #9B1B8B
triadic
#6B1B9B #9B6B1B #1B9B6B
tetradic
#6B1B9B #9B2B1B #4B9B1B #1B8B9B
square
#6B1B9B #9B2B1B #4B9B1B #1B8B9B
split-complementary
#6B1B9B #8B9B1B #1B9B2B
monochromatic
#230933 #471267 #6B1B9B #8F24CF #AA50E0

Accessibility & contrast

On white

9.31
#6B1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1B9B
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1B9B#FFFFFF#000000##FFFFFF
##6B1B9B1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#633D5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1b9b;
/* rgb */ color: rgb(107, 27, 155);
/* oklch */ color: oklch(42.2% 0.191 308.2);
Tailwind
colors: {
  custom: {
    50: '#9b63b9',
    500: '#6b1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #6b1b9b;
$custom-light: #9b63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1b9b",
  "rgb": {
    "r": 107,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 277.5,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.19136,
    "h": 308.2
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#6B1B9B
secondary
#7AC34F
accent
#ED3B7E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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