#6C2AB6#6C2AB6

#6C2AB6 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.204 H 299.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#6C2AB6
RGBrgb(108, 42, 182)
HSLhsl(268, 63%, 44%)
HSVhsv(268, 77%, 71%)
CMYKcmyk(40.7%, 76.9%, 0%, 28.6%)
CIE-LABlab(34.44, 55.49, -62.03)
CIE-LCHlch(34.44, 83.23, 311.81°)
OKLaboklab(46% 0.1005 -0.1773)
OKLCHoklch(46% 0.204 299.5)
XYZxyz(15.4537, 8.2213, 45.0196)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2AB6 #74B62A
analogous
#2A2EB6 #6C2AB6 #B22AB6
triadic
#6C2AB6 #B66C2A #2AB66C
tetradic
#6C2AB6 #B62A2E #74B62A #2AB6B2
square
#6C2AB6 #B62A2E #74B62A #2AB6B2
split-complementary
#6C2AB6 #B6B22A #2EB62A
monochromatic
#311353 #4E1F84 #6C2AB6 #8B48D5 #AA7AE0

Accessibility & contrast

On white

7.94
#6C2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6C2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2AB6
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2AB6#FFFFFF#000000##FFFFFF
##6C2AB61.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#5A4F6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c2ab6;
/* rgb */ color: rgb(108, 42, 182);
/* oklch */ color: oklch(46.0% 0.204 299.5);
Tailwind
colors: {
  custom: {
    50: '#9d6bcd',
    500: '#6c2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ab6;
$custom-light: #9d6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ab6",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 268.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45997,
    "c": 0.20381,
    "h": 299.5
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#6C2AB6
secondary
#A0C873
accent
#E64299
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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