#6A2AA8#6A2AA8

#6A2AA8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.189 H 302.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#6A2AA8
RGBrgb(106, 42, 168)
HSLhsl(270, 60%, 41%)
HSVhsv(270, 75%, 66%)
CMYKcmyk(36.9%, 75%, 0%, 34.1%)
CIE-LABlab(33.02, 51.74, -56.00)
CIE-LCHlch(33.02, 76.24, 312.73°)
OKLaboklab(44.59% 0.1009 -0.1597)
OKLCHoklch(44.59% 0.189 302.3)
XYZxyz(13.8380, 7.5472, 37.7659)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AA8 #68A82A
analogous
#2B2AA8 #6A2AA8 #A82AA7
triadic
#6A2AA8 #A86A2A #2AA86A
tetradic
#6A2AA8 #A82B2A #68A82A #2AA7A8
square
#6A2AA8 #A82B2A #68A82A #2AA7A8
split-complementary
#6A2AA8 #A7A82A #2AA82B
monochromatic
#2C1246 #4B1E77 #6A2AA8 #8940CF #A771DB

Accessibility & contrast

On white

8.37
#6A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6A2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AA8
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AA8#FFFFFF#000000##FFFFFF
##6A2AA81.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#5D4A67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2aa8;
/* rgb */ color: rgb(106, 42, 168);
/* oklch */ color: oklch(44.6% 0.189 302.3);
Tailwind
colors: {
  custom: {
    50: '#9a6ac3',
    500: '#6a2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #6a2aa8;
$custom-light: #9a6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2aa8",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 270.476,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.18893,
    "h": 302.3
  },
  "luminance": 0.07547
}

Semantic roles & 50–950 ramp

primary
#6A2AA8
secondary
#96C36B
accent
#E34593
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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