#6B1B95#6B1B95

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

Color values

HEX#6B1B95
RGBrgb(107, 27, 149)
HSLhsl(279, 69%, 35%)
HSVhsv(279, 82%, 58%)
CMYKcmyk(28.2%, 81.9%, 0%, 41.6%)
CIE-LABlab(29.61, 53.38, -50.00)
CIE-LCHlch(29.61, 73.14, 316.87°)
OKLaboklab(41.75% 0.1199 -0.1419)
OKLCHoklch(41.75% 0.186 310.2)
XYZxyz(11.8791, 6.0799, 28.9757)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1B95 #45951B
analogous
#2E1B95 #6B1B95 #951B82
triadic
#6B1B95 #956B1B #1B956B
tetradic
#6B1B95 #952E1B #45951B #1B8295
square
#6B1B95 #952E1B #45951B #1B8295
split-complementary
#6B1B95 #82951B #1B952E
monochromatic
#21082D #461261 #6B1B95 #9024C9 #AC4CDF

Accessibility & contrast

On white

9.48
#6B1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6B1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1B95
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1B95#FFFFFF#000000##FFFFFF
##6B1B951.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1b95;
/* rgb */ color: rgb(107, 27, 149);
/* oklch */ color: oklch(41.7% 0.186 310.2);
Tailwind
colors: {
  custom: {
    50: '#9a62b5',
    500: '#6b1b95',
    950: '#000000',
  },
}
SCSS
$custom: #6b1b95;
$custom-light: #9a62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1b95",
  "rgb": {
    "r": 107,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 279.344,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41747,
    "c": 0.18578,
    "h": 310.2
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#6B1B95
secondary
#74C14B
accent
#EC3C78
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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