#6A2AA4#6A2AA4

#6A2AA4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.185 H 303.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6A2AA4
RGBrgb(106, 42, 164)
HSLhsl(271, 59%, 40%)
HSVhsv(271, 74%, 64%)
CMYKcmyk(35.4%, 74.4%, 0%, 35.7%)
CIE-LABlab(32.70, 50.77, -54.11)
CIE-LCHlch(32.70, 74.20, 313.17°)
OKLaboklab(44.26% 0.1018 -0.1541)
OKLCHoklch(44.26% 0.185 303.4)
XYZxyz(13.4711, 7.4004, 35.8335)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AA4 #64A42A
analogous
#2D2AA4 #6A2AA4 #A42AA1
triadic
#6A2AA4 #A46A2A #2AA46A
tetradic
#6A2AA4 #A42D2A #64A42A #2AA1A4
square
#6A2AA4 #A42D2A #64A42A #2AA1A4
split-complementary
#6A2AA4 #A1A42A #2AA42D
monochromatic
#2B1143 #4B1E73 #6A2AA4 #893ECD #A76EDA

Accessibility & contrast

On white

8.47
#6A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AA4
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AA4#FFFFFF#000000##FFFFFF
##6A2AA41.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#5E4865
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a2aa4;
/* rgb */ color: rgb(106, 42, 164);
/* oklch */ color: oklch(44.3% 0.185 303.4);
Tailwind
colors: {
  custom: {
    50: '#9a6ac0',
    500: '#6a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2aa4;
$custom-light: #9a6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2aa4",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 271.475,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4426,
    "c": 0.18473,
    "h": 303.4
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#6A2AA4
secondary
#93C169
accent
#E24590
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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