#6B2AB6#6B2AB6

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

Color values

HEX#6B2AB6
RGBrgb(107, 42, 182)
HSLhsl(268, 63%, 44%)
HSVhsv(268, 77%, 71%)
CMYKcmyk(41.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(34.31, 55.32, -62.25)
CIE-LCHlch(34.31, 83.28, 311.63°)
OKLaboklab(45.88% 0.099 -0.178)
OKLCHoklch(45.88% 0.204 299.1)
XYZxyz(15.3327, 8.1589, 45.0139)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2AB6 #75B62A
analogous
#2A2FB6 #6B2AB6 #B12AB6
triadic
#6B2AB6 #B66B2A #2AB66B
tetradic
#6B2AB6 #B62A2F #75B62A #2AB6B1
square
#6B2AB6 #B62A2F #75B62A #2AB6B1
split-complementary
#6B2AB6 #B6B12A #2FB62A
monochromatic
#311353 #4E1F84 #6B2AB6 #8A48D5 #AA7AE0

Accessibility & contrast

On white

7.98
#6B2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6B2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2AB6
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2AB6#FFFFFF#000000##FFFFFF
##6B2AB61.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#594F6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b2ab6;
/* rgb */ color: rgb(107, 42, 182);
/* oklch */ color: oklch(45.9% 0.204 299.1);
Tailwind
colors: {
  custom: {
    50: '#9c6bcd',
    500: '#6b2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ab6;
$custom-light: #9c6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ab6",
  "rgb": {
    "r": 107,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 267.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.20368,
    "h": 299.1
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#6B2AB6
secondary
#A1C873
accent
#E6429A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6B2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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