#6B2AA8#6B2AA8

#6B2AA8 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.189 H 302.8°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#6B2AA8
RGBrgb(107, 42, 168)
HSLhsl(271, 60%, 41%)
HSVhsv(271, 75%, 66%)
CMYKcmyk(36.3%, 75%, 0%, 34.1%)
CIE-LABlab(33.15, 51.92, -55.78)
CIE-LCHlch(33.15, 76.20, 312.95°)
OKLaboklab(44.71% 0.1024 -0.159)
OKLCHoklch(44.71% 0.189 302.8)
XYZxyz(13.9576, 7.6089, 37.7715)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2AA8 #67A82A
analogous
#2C2AA8 #6B2AA8 #A82AA6
triadic
#6B2AA8 #A86B2A #2AA86B
tetradic
#6B2AA8 #A82C2A #67A82A #2AA6A8
square
#6B2AA8 #A82C2A #67A82A #2AA6A8
split-complementary
#6B2AA8 #A6A82A #2AA82C
monochromatic
#2D1246 #4C1E77 #6B2AA8 #8A40CF #A871DB

Accessibility & contrast

On white

8.33
#6B2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6B2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2AA8
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2AA8#FFFFFF#000000##FFFFFF
##6B2AA81.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#5E4A67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2aa8;
/* rgb */ color: rgb(107, 42, 168);
/* oklch */ color: oklch(44.7% 0.189 302.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ac3',
    500: '#6b2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #6b2aa8;
$custom-light: #9b6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2aa8",
  "rgb": {
    "r": 107,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 270.952,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44708,
    "c": 0.18912,
    "h": 302.8
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#6B2AA8
secondary
#96C36B
accent
#E34591
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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