#6B159E#6B159E

#6B159E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.1% C 0.199 H 307.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#6B159E
RGBrgb(107, 21, 158)
HSLhsl(278, 77%, 35%)
HSVhsv(278, 87%, 62%)
CMYKcmyk(32.3%, 86.7%, 0%, 38%)
CIE-LABlab(29.74, 57.12, -55.30)
CIE-LCHlch(29.74, 79.51, 315.93°)
OKLaboklab(42.07% 0.1215 -0.1574)
OKLCHoklch(42.07% 0.199 307.7)
XYZxyz(12.5018, 6.1309, 32.8659)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B159E #489E15
analogous
#26159E #6B159E #9E158D
triadic
#6B159E #9E6B15 #159E6B
tetradic
#6B159E #9E2615 #489E15 #158D9E
square
#6B159E #9E2615 #489E15 #158D9E
split-complementary
#6B159E #8D9E15 #159E26
monochromatic
#220732 #460E68 #6B159E #901CD4 #AB47E7

Accessibility & contrast

On white

9.43
#6B159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B159E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B159E#FFFFFF#000000##FFFFFF
##6B159E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#623C5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b159e;
/* rgb */ color: rgb(107, 21, 158);
/* oklch */ color: oklch(42.1% 0.199 307.7);
Tailwind
colors: {
  custom: {
    50: '#9b61bc',
    500: '#6b159e',
    950: '#000000',
  },
}
SCSS
$custom: #6b159e;
$custom-light: #9b61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b159e",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 277.664,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.19886,
    "h": 307.7
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#6B159E
secondary
#77C747
accent
#F3357C
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B159E

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

Preview Lab → · Contrast checker → · Palette generator →

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