#6C2AB5#6C2AB5

#6C2AB5 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.203 H 299.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#6C2AB5
RGBrgb(108, 42, 181)
HSLhsl(268, 62%, 44%)
HSVhsv(268, 77%, 71%)
CMYKcmyk(40.3%, 76.8%, 0%, 29%)
CIE-LABlab(34.36, 55.24, -61.58)
CIE-LCHlch(34.36, 82.73, 311.90°)
OKLaboklab(45.91% 0.1007 -0.176)
OKLCHoklch(45.91% 0.203 299.8)
XYZxyz(15.3507, 8.1801, 44.4773)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2AB5 #73B52A
analogous
#2A2DB5 #6C2AB5 #B12AB5
triadic
#6C2AB5 #B56C2A #2AB56C
tetradic
#6C2AB5 #B52A2D #73B52A #2AB5B1
square
#6C2AB5 #B52A2D #73B52A #2AB5B1
split-complementary
#6C2AB5 #B5B12A #2DB52A
monochromatic
#311352 #4E1E83 #6C2AB5 #8B48D4 #AA79E0

Accessibility & contrast

On white

7.97
#6C2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2AB5
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2AB5#FFFFFF#000000##FFFFFF
##6C2AB51.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#5B4F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c2ab5;
/* rgb */ color: rgb(108, 42, 181);
/* oklch */ color: oklch(45.9% 0.203 299.8);
Tailwind
colors: {
  custom: {
    50: '#9d6bcc',
    500: '#6c2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ab5;
$custom-light: #9d6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ab5",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 268.489,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.20279,
    "h": 299.8
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#6C2AB5
secondary
#A0C873
accent
#E54298
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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