#6A1AA1#6A1AA1

#6A1AA1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.198 H 305.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6A1AA1
RGBrgb(106, 26, 161)
HSLhsl(276, 72%, 37%)
HSVhsv(276, 84%, 63%)
CMYKcmyk(34.2%, 83.9%, 0%, 36.9%)
CIE-LABlab(30.34, 56.17, -56.14)
CIE-LCHlch(30.34, 79.42, 315.01°)
OKLaboklab(42.53% 0.1159 -0.16)
OKLCHoklch(42.53% 0.198 305.9)
XYZxyz(12.7448, 6.3763, 34.2706)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1AA1 #51A11A
analogous
#271AA1 #6A1AA1 #A11A95
triadic
#6A1AA1 #A16A1A #1AA16A
tetradic
#6A1AA1 #A1271A #51A11A #1A95A1
square
#6A1AA1 #A1271A #51A11A #1A95A1
split-complementary
#6A1AA1 #95A11A #1AA127
monochromatic
#250938 #47116C #6A1AA1 #8D23D6 #A852E3

Accessibility & contrast

On white

9.23
#6A1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6A1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1AA1
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1AA1#FFFFFF#000000##FFFFFF
##6A1AA11.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#604060
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1aa1;
/* rgb */ color: rgb(106, 26, 161);
/* oklch */ color: oklch(42.5% 0.198 305.9);
Tailwind
colors: {
  custom: {
    50: '#9a63be',
    500: '#6a1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #6a1aa1;
$custom-light: #9a63be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1aa1",
  "rgb": {
    "r": 106,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 275.556,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42532,
    "c": 0.19755,
    "h": 305.9
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#6A1AA1
secondary
#81C651
accent
#EF3983
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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