#6B159D#6B159D

#6B159D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.0% C 0.198 H 308.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#6B159D
RGBrgb(107, 21, 157)
HSLhsl(278, 76%, 35%)
HSVhsv(278, 87%, 62%)
CMYKcmyk(31.8%, 86.6%, 0%, 38.4%)
CIE-LABlab(29.65, 56.91, -54.83)
CIE-LCHlch(29.65, 79.03, 316.07°)
OKLaboklab(41.98% 0.1218 -0.1561)
OKLCHoklch(41.98% 0.198 308)
XYZxyz(12.4161, 6.0966, 32.4144)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B159D #479D15
analogous
#27159D #6B159D #9D158B
triadic
#6B159D #9D6B15 #159D6B
tetradic
#6B159D #9D2715 #479D15 #158B9D
square
#6B159D #9D2715 #479D15 #158B9D
split-complementary
#6B159D #8B9D15 #159D27
monochromatic
#210731 #460E67 #6B159D #901CD3 #AB46E6

Accessibility & contrast

On white

9.46
#6B159D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B159D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B159D#FFFFFF#000000##FFFFFF
##6B159D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#633C5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b159d;
/* rgb */ color: rgb(107, 21, 157);
/* oklch */ color: oklch(42.0% 0.198 308.0);
Tailwind
colors: {
  custom: {
    50: '#9b61bb',
    500: '#6b159d',
    950: '#000000',
  },
}
SCSS
$custom: #6b159d;
$custom-light: #9b61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b159d",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 157
  },
  "hsl": {
    "h": 277.941,
    "s": 76.404,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41981,
    "c": 0.19796,
    "h": 308
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#6B159D
secondary
#76C747
accent
#F3357B
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B159D

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

Preview Lab → · Contrast checker → · Palette generator →

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