#6C2AAB#6C2AAB

#6C2AAB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.192 H 302.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6C2AAB
RGBrgb(108, 42, 171)
HSLhsl(271, 61%, 42%)
HSVhsv(271, 75%, 67%)
CMYKcmyk(36.8%, 75.4%, 0%, 32.9%)
CIE-LABlab(33.53, 52.82, -56.96)
CIE-LCHlch(33.53, 77.68, 312.84°)
OKLaboklab(45.08% 0.1032 -0.1624)
OKLCHoklch(45.08% 0.192 302.4)
XYZxyz(14.3612, 7.7843, 39.2661)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2AAB #69AB2A
analogous
#2C2AAB #6C2AAB #AB2AAA
triadic
#6C2AAB #AB6C2A #2AAB6C
tetradic
#6C2AAB #AB2C2A #69AB2A #2AAAAB
square
#6C2AAB #AB2C2A #69AB2A #2AAAAB
split-complementary
#6C2AAB #AAAB2A #2AAB2C
monochromatic
#2E1249 #4D1E7A #6C2AAB #8B42D1 #A973DD

Accessibility & contrast

On white

8.21
#6C2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6C2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2AAB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2AAB#FFFFFF#000000##FFFFFF
##6C2AAB1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#5F4B69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2aab;
/* rgb */ color: rgb(108, 42, 171);
/* oklch */ color: oklch(45.1% 0.192 302.4);
Tailwind
colors: {
  custom: {
    50: '#9c6ac5',
    500: '#6c2aab',
    950: '#000000',
  },
}
SCSS
$custom: #6c2aab;
$custom-light: #9c6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2aab",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 270.698,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45076,
    "c": 0.19243,
    "h": 302.4
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#6C2AAB
secondary
#97C46D
accent
#E44492
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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