#6A2AAA#6A2AAA

#6A2AAA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.191 H 301.7°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#6A2AAA
RGBrgb(106, 42, 170)
HSLhsl(270, 60%, 42%)
HSVhsv(270, 75%, 67%)
CMYKcmyk(37.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(33.18, 52.22, -56.94)
CIE-LCHlch(33.18, 77.26, 312.53°)
OKLaboklab(44.75% 0.1005 -0.1624)
OKLCHoklch(44.75% 0.191 301.7)
XYZxyz(14.0258, 7.6223, 38.7547)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AAA #6AAA2A
analogous
#2A2AAA #6A2AAA #AA2AAA
triadic
#6A2AAA #AA6A2A #2AAA6A
tetradic
#6A2AAA #AA2A2A #6AAA2A #2AAAAA
square
#6A2AAA #AA2A2A #6AAA2A #2AAAAA
split-complementary
#6A2AAA #AAAA2A #2AAA2A
monochromatic
#2D1248 #4B1E79 #6A2AAA #8941D0 #A772DC

Accessibility & contrast

On white

8.32
#6A2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6A2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AAA
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AAA#FFFFFF#000000##FFFFFF
##6A2AAA1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#5C4B68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2aaa;
/* rgb */ color: rgb(106, 42, 170);
/* oklch */ color: oklch(44.8% 0.191 301.7);
Tailwind
colors: {
  custom: {
    50: '#9a6ac4',
    500: '#6a2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #6a2aaa;
$custom-light: #9a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2aaa",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.19102,
    "h": 301.7
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#6A2AAA
secondary
#98C36C
accent
#E44494
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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