#6A2AA6#6A2AA6

#6A2AA6 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.187 H 302.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6A2AA6
RGBrgb(106, 42, 166)
HSLhsl(271, 60%, 41%)
HSVhsv(271, 75%, 65%)
CMYKcmyk(36.1%, 74.7%, 0%, 34.9%)
CIE-LABlab(32.86, 51.25, -55.06)
CIE-LCHlch(32.86, 75.22, 312.95°)
OKLaboklab(44.42% 0.1014 -0.1569)
OKLCHoklch(44.42% 0.187 302.9)
XYZxyz(13.6531, 7.4733, 36.7922)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AA6 #66A62A
analogous
#2C2AA6 #6A2AA6 #A62AA4
triadic
#6A2AA6 #A66A2A #2AA66A
tetradic
#6A2AA6 #A62C2A #66A62A #2AA4A6
square
#6A2AA6 #A62C2A #66A62A #2AA4A6
split-complementary
#6A2AA6 #A4A62A #2AA62C
monochromatic
#2C1144 #4B1E75 #6A2AA6 #893FCE #A770DB

Accessibility & contrast

On white

8.42
#6A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AA6
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AA6#FFFFFF#000000##FFFFFF
##6A2AA61.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#5E4966
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a2aa6;
/* rgb */ color: rgb(106, 42, 166);
/* oklch */ color: oklch(44.4% 0.187 302.9);
Tailwind
colors: {
  custom: {
    50: '#9a6ac1',
    500: '#6a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #6a2aa6;
$custom-light: #9a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2aa6",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 270.968,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44422,
    "c": 0.18683,
    "h": 302.9
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#6A2AA6
secondary
#94C26A
accent
#E34591
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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