#6C2AA6#6C2AA6

#6C2AA6 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.187 H 303.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#6C2AA6
RGBrgb(108, 42, 166)
HSLhsl(272, 60%, 41%)
HSVhsv(272, 75%, 65%)
CMYKcmyk(34.9%, 74.7%, 0%, 34.9%)
CIE-LABlab(33.13, 51.62, -54.61)
CIE-LCHlch(33.13, 75.15, 313.39°)
OKLaboklab(44.67% 0.1043 -0.1555)
OKLCHoklch(44.67% 0.187 303.8)
XYZxyz(13.8936, 7.5973, 36.8035)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2AA6 #64A62A
analogous
#2E2AA6 #6C2AA6 #A62AA2
triadic
#6C2AA6 #A66C2A #2AA66C
tetradic
#6C2AA6 #A62E2A #64A62A #2AA2A6
square
#6C2AA6 #A62E2A #64A62A #2AA2A6
split-complementary
#6C2AA6 #A2A62A #2AA62E
monochromatic
#2C1144 #4C1E75 #6C2AA6 #8B3FCE #A970DB

Accessibility & contrast

On white

8.34
#6C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6C2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2AA6
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2AA6#FFFFFF#000000##FFFFFF
##6C2AA61.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#614966
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c2aa6;
/* rgb */ color: rgb(108, 42, 166);
/* oklch */ color: oklch(44.7% 0.187 303.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ac1',
    500: '#6c2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2aa6;
$custom-light: #9b6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2aa6",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 271.935,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.18725,
    "h": 303.8
  },
  "luminance": 0.07597
}

Semantic roles & 50–950 ramp

primary
#6C2AA6
secondary
#93C26A
accent
#E3458F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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