#6B2AB7#6B2AB7

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

Color values

HEX#6B2AB7
RGBrgb(107, 42, 183)
HSLhsl(268, 63%, 44%)
HSVhsv(268, 77%, 72%)
CMYKcmyk(41.5%, 77%, 0%, 28.2%)
CIE-LABlab(34.40, 55.57, -62.70)
CIE-LCHlch(34.40, 83.78, 311.55°)
OKLaboklab(45.97% 0.0987 -0.1793)
OKLCHoklch(45.97% 0.205 298.8)
XYZxyz(15.4364, 8.2004, 45.5601)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2AB7 #76B72A
analogous
#2A2FB7 #6B2AB7 #B22AB7
triadic
#6B2AB7 #B76B2A #2AB76B
tetradic
#6B2AB7 #B72A2F #76B72A #2AB7B2
square
#6B2AB7 #B72A2F #76B72A #2AB7B2
split-complementary
#6B2AB7 #B7B22A #2FB72A
monochromatic
#311353 #4E1F85 #6B2AB7 #8A49D5 #AA7BE1

Accessibility & contrast

On white

7.95
#6B2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2AB7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2AB7#FFFFFF#000000##FFFFFF
##6B2AB71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#585070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b2ab7;
/* rgb */ color: rgb(107, 42, 183);
/* oklch */ color: oklch(46.0% 0.205 298.8);
Tailwind
colors: {
  custom: {
    50: '#9c6bce',
    500: '#6b2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ab7;
$custom-light: #9c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ab7",
  "rgb": {
    "r": 107,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 267.66,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45966,
    "c": 0.20472,
    "h": 298.8
  },
  "luminance": 0.08201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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