#6B2BAB#6B2BAB

#6B2BAB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.191 H 301.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6B2BAB
RGBrgb(107, 43, 171)
HSLhsl(270, 60%, 42%)
HSVhsv(270, 75%, 67%)
CMYKcmyk(37.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(33.55, 52.21, -56.94)
CIE-LCHlch(33.55, 77.25, 312.52°)
OKLaboklab(45.06% 0.1008 -0.1624)
OKLCHoklch(45.06% 0.191 301.8)
XYZxyz(14.2762, 7.7938, 39.2724)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2BAB #6BAB2B
analogous
#2B2BAB #6B2BAB #AB2BAB
triadic
#6B2BAB #AB6B2B #2BAB6B
tetradic
#6B2BAB #AB2B2B #6BAB2B #2BABAB
square
#6B2BAB #AB2B2B #6BAB2B #2BABAB
split-complementary
#6B2BAB #ABAB2B #2BAB2B
monochromatic
#2E1249 #4C1F7A #6B2BAB #8A43D0 #A874DC

Accessibility & contrast

On white

8.21
#6B2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6B2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2BAB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2BAB#FFFFFF#000000##FFFFFF
##6B2BAB1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2bab;
/* rgb */ color: rgb(107, 43, 171);
/* oklch */ color: oklch(45.1% 0.191 301.8);
Tailwind
colors: {
  custom: {
    50: '#9b6bc5',
    500: '#6b2bab',
    950: '#000000',
  },
}
SCSS
$custom: #6b2bab;
$custom-light: #9b6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2bab",
  "rgb": {
    "r": 107,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 270,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45062,
    "c": 0.19114,
    "h": 301.8
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#6B2BAB
secondary
#99C46E
accent
#E34594
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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