#6A2181#6A2181

#6A2181 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.160 H 316.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#6A2181
RGBrgb(106, 33, 129)
HSLhsl(286, 59%, 32%)
HSVhsv(286, 74%, 51%)
CMYKcmyk(17.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(28.74, 46.68, -39.00)
CIE-LCHlch(28.74, 60.83, 320.12°)
OKLaboklab(40.63% 0.1166 -0.1097)
OKLCHoklch(40.63% 0.16 316.8)
XYZxyz(10.4496, 5.7373, 21.3216)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2181 #388121
analogous
#3A2181 #6A2181 #812168
triadic
#6A2181 #816A21 #21816A
tetradic
#6A2181 #813A21 #388121 #216881
square
#6A2181 #813A21 #388121 #216881
split-complementary
#6A2181 #688121 #21813A
monochromatic
#1A0820 #421550 #6A2181 #922DB2 #B14BD1

Accessibility & contrast

On white

9.78
#6A2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2181
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2181#FFFFFF#000000##FFFFFF
##6A21811.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#22467F
Tritanopia (blue-blind)
#69354F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a2181;
/* rgb */ color: rgb(106, 33, 129);
/* oklch */ color: oklch(40.6% 0.160 316.8);
Tailwind
colors: {
  custom: {
    50: '#9864a6',
    500: '#6a2181',
    950: '#000000',
  },
}
SCSS
$custom: #6a2181;
$custom-light: #9864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2181",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 285.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40628,
    "c": 0.16011,
    "h": 316.8
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A2181

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

Preview Lab → · Contrast checker → · Palette generator →

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