#6C2AB2#6C2AB2

#6C2AB2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.200 H 300.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6C2AB2
RGBrgb(108, 42, 178)
HSLhsl(269, 62%, 43%)
HSVhsv(269, 76%, 70%)
CMYKcmyk(39.3%, 76.4%, 0%, 30.2%)
CIE-LABlab(34.10, 54.51, -60.20)
CIE-LCHlch(34.10, 81.22, 312.16°)
OKLaboklab(45.66% 0.1015 -0.172)
OKLCHoklch(45.66% 0.2 300.5)
XYZxyz(15.0462, 8.0583, 42.8736)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2AB2 #70B22A
analogous
#2A2CB2 #6C2AB2 #B02AB2
triadic
#6C2AB2 #B26C2A #2AB26C
tetradic
#6C2AB2 #B22A2C #70B22A #2AB2B0
square
#6C2AB2 #B22A2C #70B22A #2AB2B0
split-complementary
#6C2AB2 #B2B02A #2CB22A
monochromatic
#30134F #4E1E80 #6C2AB2 #8B46D3 #AA77DF

Accessibility & contrast

On white

8.04
#6C2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6C2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2AB2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2AB2#FFFFFF#000000##FFFFFF
##6C2AB21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#5C4E6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2ab2;
/* rgb */ color: rgb(108, 42, 178);
/* oklch */ color: oklch(45.7% 0.200 300.5);
Tailwind
colors: {
  custom: {
    50: '#9d6bca',
    500: '#6c2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ab2;
$custom-light: #9d6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ab2",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 269.118,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.19969,
    "h": 300.5
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#6C2AB2
secondary
#9DC771
accent
#E54396
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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