#6A1A97#6A1A97

#6A1A97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.188 H 309.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#6A1A97
RGBrgb(106, 26, 151)
HSLhsl(278, 71%, 35%)
HSVhsv(278, 83%, 59%)
CMYKcmyk(29.8%, 82.8%, 0%, 40.8%)
CIE-LABlab(29.51, 53.97, -51.41)
CIE-LCHlch(29.51, 74.53, 316.39°)
OKLaboklab(41.69% 0.1187 -0.1461)
OKLCHoklch(41.69% 0.188 309.1)
XYZxyz(11.8980, 6.0376, 29.8107)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1A97 #47971A
analogous
#2C1A97 #6A1A97 #971A86
triadic
#6A1A97 #976A1A #1A976A
tetradic
#6A1A97 #972C1A #47971A #1A8697
square
#6A1A97 #972C1A #47971A #1A8697
split-complementary
#6A1A97 #86971A #1A972C
monochromatic
#21082F #451163 #6A1A97 #8F23CB #AB4BE0

Accessibility & contrast

On white

9.51
#6A1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1A97
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1A97#FFFFFF#000000##FFFFFF
##6A1A971.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#633B5A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1a97;
/* rgb */ color: rgb(106, 26, 151);
/* oklch */ color: oklch(41.7% 0.188 309.1);
Tailwind
colors: {
  custom: {
    50: '#9a62b6',
    500: '#6a1a97',
    950: '#000000',
  },
}
SCSS
$custom: #6a1a97;
$custom-light: #9a62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1a97",
  "rgb": {
    "r": 106,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 278.4,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41692,
    "c": 0.18825,
    "h": 309.1
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

primary
#6A1A97
secondary
#76C24B
accent
#ED3A7B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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