#6A2182#6A2182

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

Color values

HEX#6A2182
RGBrgb(106, 33, 130)
HSLhsl(285, 60%, 32%)
HSVhsv(285, 75%, 51%)
CMYKcmyk(18.5%, 74.6%, 0%, 49%)
CIE-LABlab(28.81, 46.90, -39.52)
CIE-LCHlch(28.81, 61.33, 319.88°)
OKLaboklab(40.7% 0.1165 -0.1112)
OKLCHoklch(40.7% 0.161 316.3)
XYZxyz(10.5164, 5.7640, 21.6734)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2182 #398221
analogous
#3A2182 #6A2182 #82216A
triadic
#6A2182 #826A21 #21826A
tetradic
#6A2182 #823A21 #398221 #216A82
square
#6A2182 #823A21 #398221 #216A82
split-complementary
#6A2182 #6A8221 #21823A
monochromatic
#1A0820 #421551 #6A2182 #922DB3 #B04CD2

Accessibility & contrast

On white

9.75
#6A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2182
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2182#FFFFFF#000000##FFFFFF
##6A21821.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#214680
Tritanopia (blue-blind)
#69354F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a2182;
/* rgb */ color: rgb(106, 33, 130);
/* oklch */ color: oklch(40.7% 0.161 316.3);
Tailwind
colors: {
  custom: {
    50: '#9864a7',
    500: '#6a2182',
    950: '#000000',
  },
}
SCSS
$custom: #6a2182;
$custom-light: #9864a7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2182",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 285.155,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.407,
    "c": 0.16107,
    "h": 316.3
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#6A2182
secondary
#65B44A
accent
#E3456C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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