#6A2A97#6A2A97

#6A2A97 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.171 H 307.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#6A2A97
RGBrgb(106, 42, 151)
HSLhsl(275, 56%, 38%)
HSVhsv(275, 72%, 59%)
CMYKcmyk(29.8%, 72.2%, 0%, 40.8%)
CIE-LABlab(31.70, 47.68, -47.84)
CIE-LCHlch(31.70, 67.54, 314.90°)
OKLaboklab(43.24% 0.1042 -0.1357)
OKLCHoklch(43.24% 0.171 307.5)
XYZxyz(12.3566, 6.9546, 29.9636)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2A97 #57972A
analogous
#332A97 #6A2A97 #972A8E
triadic
#6A2A97 #976A2A #2A976A
tetradic
#6A2A97 #97332A #57972A #2A8E97
square
#6A2A97 #97332A #57972A #2A8E97
split-complementary
#6A2A97 #8E972A #2A9733
monochromatic
#270F37 #481D67 #6A2A97 #8C37C7 #A767D5

Accessibility & contrast

On white

8.78
#6A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2A97
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2A97#FFFFFF#000000##FFFFFF
##6A2A971.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#084B95
Tritanopia (blue-blind)
#63435E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a2a97;
/* rgb */ color: rgb(106, 42, 151);
/* oklch */ color: oklch(43.2% 0.171 307.5);
Tailwind
colors: {
  custom: {
    50: '#9969b6',
    500: '#6a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #6a2a97;
$custom-light: #9969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2a97",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 275.229,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43238,
    "c": 0.17107,
    "h": 307.5
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#6A2A97
secondary
#87BB62
accent
#E04887
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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