#6B2181#6B2181

#6B2181 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.161 H 317.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#6B2181
RGBrgb(107, 33, 129)
HSLhsl(286, 59%, 32%)
HSVhsv(286, 74%, 51%)
CMYKcmyk(17.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(28.90, 46.91, -38.74)
CIE-LCHlch(28.90, 60.83, 320.45°)
OKLaboklab(40.77% 0.118 -0.1089)
OKLCHoklch(40.77% 0.161 317.3)
XYZxyz(10.5691, 5.7989, 21.3272)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2181 #378121
analogous
#3B2181 #6B2181 #812167
triadic
#6B2181 #816B21 #21816B
tetradic
#6B2181 #813B21 #378121 #216781
square
#6B2181 #813B21 #378121 #216781
split-complementary
#6B2181 #678121 #21813B
monochromatic
#1A0820 #431550 #6B2181 #932DB2 #B24BD1

Accessibility & contrast

On white

9.72
#6B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6B2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2181
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2181#FFFFFF#000000##FFFFFF
##6B21811.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#23467F
Tritanopia (blue-blind)
#6A354F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b2181;
/* rgb */ color: rgb(107, 33, 129);
/* oklch */ color: oklch(40.8% 0.161 317.3);
Tailwind
colors: {
  custom: {
    50: '#9964a6',
    500: '#6b2181',
    950: '#000000',
  },
}
SCSS
$custom: #6b2181;
$custom-light: #9964a6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2181",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 286.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40774,
    "c": 0.16053,
    "h": 317.3
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#6B2181
secondary
#62B44A
accent
#E24569
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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