#6B2182#6B2182

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

Color values

HEX#6B2182
RGBrgb(107, 33, 130)
HSLhsl(286, 60%, 32%)
HSVhsv(286, 75%, 51%)
CMYKcmyk(17.7%, 74.6%, 0%, 49%)
CIE-LABlab(28.97, 47.11, -39.25)
CIE-LCHlch(28.97, 61.32, 320.20°)
OKLaboklab(40.85% 0.1178 -0.1104)
OKLCHoklch(40.85% 0.161 316.9)
XYZxyz(10.6359, 5.8257, 21.6790)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2182 #388221
analogous
#3B2182 #6B2182 #822169
triadic
#6B2182 #826B21 #21826B
tetradic
#6B2182 #823B21 #388221 #216982
square
#6B2182 #823B21 #388221 #216982
split-complementary
#6B2182 #698221 #21823B
monochromatic
#1B0820 #431551 #6B2182 #932DB3 #B24CD2

Accessibility & contrast

On white

9.70
#6B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6B2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2182
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2182#FFFFFF#000000##FFFFFF
##6B21821.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#224680
Tritanopia (blue-blind)
#6A354F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b2182;
/* rgb */ color: rgb(107, 33, 130);
/* oklch */ color: oklch(40.8% 0.161 316.9);
Tailwind
colors: {
  custom: {
    50: '#9964a7',
    500: '#6b2182',
    950: '#000000',
  },
}
SCSS
$custom: #6b2182;
$custom-light: #9964a7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2182",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 285.773,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.16148,
    "h": 316.9
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#6B2182
secondary
#63B44A
accent
#E3456A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B2182

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

Preview Lab → · Contrast checker → · Palette generator →

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