#6B2EA1#6B2EA1

#6B2EA1 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.177 H 304.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6B2EA1
RGBrgb(107, 46, 161)
HSLhsl(272, 56%, 41%)
HSVhsv(272, 71%, 63%)
CMYKcmyk(33.5%, 71.4%, 0%, 36.9%)
CIE-LABlab(33.25, 48.41, -51.41)
CIE-LCHlch(33.25, 70.62, 313.28°)
OKLaboklab(44.6% 0.0998 -0.1462)
OKLCHoklch(44.6% 0.177 304.3)
XYZxyz(13.4720, 7.6530, 34.4788)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EA1 #64A12E
analogous
#312EA1 #6B2EA1 #A12E9D
triadic
#6B2EA1 #A16B2E #2EA16B
tetradic
#6B2EA1 #A1312E #64A12E #2E9DA1
square
#6B2EA1 #A1312E #64A12E #2E9DA1
split-complementary
#6B2EA1 #9DA12E #2EA131
monochromatic
#2C1342 #4B2071 #6B2EA1 #8A43C9 #A873D7

Accessibility & contrast

On white

8.30
#6B2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6B2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EA1
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EA1#FFFFFF#000000##FFFFFF
##6B2EA11.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#614964
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2ea1;
/* rgb */ color: rgb(107, 46, 161);
/* oklch */ color: oklch(44.6% 0.177 304.3);
Tailwind
colors: {
  custom: {
    50: '#9a6cbe',
    500: '#6b2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ea1;
$custom-light: #9a6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ea1",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 271.826,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44604,
    "c": 0.17698,
    "h": 304.3
  },
  "luminance": 0.07653
}

Semantic roles & 50–950 ramp

primary
#6B2EA1
secondary
#93BE6C
accent
#DF498F
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6B2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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