#6B2CA6#6B2CA6

#6B2CA6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.185 H 303.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6B2CA6
RGBrgb(107, 44, 166)
HSLhsl(271, 58%, 41%)
HSVhsv(271, 73%, 65%)
CMYKcmyk(35.5%, 73.5%, 0%, 34.9%)
CIE-LABlab(33.31, 50.55, -54.33)
CIE-LCHlch(33.31, 74.21, 312.94°)
OKLaboklab(44.77% 0.1009 -0.1547)
OKLCHoklch(44.77% 0.185 303.1)
XYZxyz(13.8454, 7.6803, 36.8220)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2CA6 #67A62C
analogous
#2E2CA6 #6B2CA6 #A62CA4
triadic
#6B2CA6 #A66B2C #2CA66B
tetradic
#6B2CA6 #A62E2C #67A62C #2CA4A6
square
#6B2CA6 #A62E2C #67A62C #2CA4A6
split-complementary
#6B2CA6 #A4A62C #2CA62E
monochromatic
#2D1245 #4C1F76 #6B2CA6 #8A42CD #A873DA

Accessibility & contrast

On white

8.28
#6B2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6B2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2CA6
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2CA6#FFFFFF#000000##FFFFFF
##6B2CA61.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#5F4A66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2ca6;
/* rgb */ color: rgb(107, 44, 166);
/* oklch */ color: oklch(44.8% 0.185 303.1);
Tailwind
colors: {
  custom: {
    50: '#9b6bc1',
    500: '#6b2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ca6;
$custom-light: #9b6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ca6",
  "rgb": {
    "r": 107,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 270.984,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44767,
    "c": 0.18473,
    "h": 303.1
  },
  "luminance": 0.0768
}

Semantic roles & 50–950 ramp

primary
#6B2CA6
secondary
#96C16D
accent
#E14691
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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