#6C2BAB#6C2BAB

#6C2BAB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.191 H 302.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#6C2BAB
RGBrgb(108, 43, 171)
HSLhsl(270, 60%, 42%)
HSVhsv(270, 75%, 67%)
CMYKcmyk(36.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(33.68, 52.39, -56.72)
CIE-LCHlch(33.68, 77.21, 312.73°)
OKLaboklab(45.18% 0.1022 -0.1617)
OKLCHoklch(45.18% 0.191 302.3)
XYZxyz(14.3971, 7.8561, 39.2781)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2BAB #6AAB2B
analogous
#2C2BAB #6C2BAB #AB2BAA
triadic
#6C2BAB #AB6C2B #2BAB6C
tetradic
#6C2BAB #AB2C2B #6AAB2B #2BAAAB
square
#6C2BAB #AB2C2B #6AAB2B #2BAAAB
split-complementary
#6C2BAB #AAAB2B #2BAB2C
monochromatic
#2E1249 #4D1F7A #6C2BAB #8B43D0 #A974DC

Accessibility & contrast

On white

8.17
#6C2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6C2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2BAB
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2BAB#FFFFFF#000000##FFFFFF
##6C2BAB1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2bab;
/* rgb */ color: rgb(108, 43, 171);
/* oklch */ color: oklch(45.2% 0.191 302.3);
Tailwind
colors: {
  custom: {
    50: '#9c6bc5',
    500: '#6c2bab',
    950: '#000000',
  },
}
SCSS
$custom: #6c2bab;
$custom-light: #9c6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2bab",
  "rgb": {
    "r": 108,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 270.469,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.19133,
    "h": 302.3
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#6C2BAB
secondary
#98C46E
accent
#E34593
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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