#6A159E#6A159E

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

Color values

HEX#6A159E
RGBrgb(106, 21, 158)
HSLhsl(277, 77%, 35%)
HSVhsv(277, 87%, 62%)
CMYKcmyk(32.9%, 86.7%, 0%, 38%)
CIE-LABlab(29.59, 56.97, -55.56)
CIE-LCHlch(29.59, 79.58, 315.72°)
OKLaboklab(41.93% 0.12 -0.1582)
OKLCHoklch(41.93% 0.199 307.2)
XYZxyz(12.3822, 6.0693, 32.8603)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A159E #499E15
analogous
#25159E #6A159E #9E158E
triadic
#6A159E #9E6A15 #159E6A
tetradic
#6A159E #9E2515 #499E15 #158E9E
square
#6A159E #9E2515 #499E15 #158E9E
split-complementary
#6A159E #8E9E15 #159E25
monochromatic
#220732 #460E68 #6A159E #8E1CD4 #AA47E7

Accessibility & contrast

On white

9.49
#6A159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6A159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A159E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A159E#FFFFFF#000000##FFFFFF
##6A159E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#613D5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a159e;
/* rgb */ color: rgb(106, 21, 158);
/* oklch */ color: oklch(41.9% 0.199 307.2);
Tailwind
colors: {
  custom: {
    50: '#9a61bc',
    500: '#6a159e',
    950: '#000000',
  },
}
SCSS
$custom: #6a159e;
$custom-light: #9a61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a159e",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 277.226,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41929,
    "c": 0.19861,
    "h": 307.2
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#6A159E
secondary
#78C747
accent
#F3357D
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A159E

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

Preview Lab → · Contrast checker → · Palette generator →

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