#6B2AA6#6B2AA6

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

Color values

HEX#6B2AA6
RGBrgb(107, 42, 166)
HSLhsl(271, 60%, 41%)
HSVhsv(271, 75%, 65%)
CMYKcmyk(35.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(32.99, 51.44, -54.84)
CIE-LCHlch(32.99, 75.19, 313.17°)
OKLaboklab(44.55% 0.1028 -0.1562)
OKLCHoklch(44.55% 0.187 303.3)
XYZxyz(13.7727, 7.5349, 36.7978)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2AA6 #65A62A
analogous
#2D2AA6 #6B2AA6 #A62AA3
triadic
#6B2AA6 #A66B2A #2AA66B
tetradic
#6B2AA6 #A62D2A #65A62A #2AA3A6
square
#6B2AA6 #A62D2A #65A62A #2AA3A6
split-complementary
#6B2AA6 #A3A62A #2AA62D
monochromatic
#2C1144 #4C1E75 #6B2AA6 #8A3FCE #A870DB

Accessibility & contrast

On white

8.38
#6B2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2AA6
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2AA6#FFFFFF#000000##FFFFFF
##6B2AA61.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#5F4966
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2aa6;
/* rgb */ color: rgb(107, 42, 166);
/* oklch */ color: oklch(44.5% 0.187 303.3);
Tailwind
colors: {
  custom: {
    50: '#9b6ac1',
    500: '#6b2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2aa6;
$custom-light: #9b6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2aa6",
  "rgb": {
    "r": 107,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 271.452,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44545,
    "c": 0.18704,
    "h": 303.3
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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