#6A2187#6A2187

#6A2187 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.166 H 314.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#6A2187
RGBrgb(106, 33, 135)
HSLhsl(283, 61%, 33%)
HSVhsv(283, 76%, 53%)
CMYKcmyk(21.5%, 75.6%, 0%, 47.1%)
CIE-LABlab(29.16, 47.96, -42.07)
CIE-LCHlch(29.16, 63.80, 318.74°)
OKLaboklab(41.06% 0.1159 -0.1187)
OKLCHoklch(41.06% 0.166 314.3)
XYZxyz(10.8602, 5.9015, 23.4840)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2187 #3E8721
analogous
#372187 #6A2187 #872171
triadic
#6A2187 #876A21 #21876A
tetradic
#6A2187 #873721 #3E8721 #217187
square
#6A2187 #873721 #3E8721 #217187
split-complementary
#6A2187 #718721 #218737
monochromatic
#1D0925 #431556 #6A2187 #912DB8 #AE4FD4

Accessibility & contrast

On white

9.63
#6A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6A2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2187
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2187#FFFFFF#000000##FFFFFF
##6A21871.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#1B4685
Tritanopia (blue-blind)
#673752
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a2187;
/* rgb */ color: rgb(106, 33, 135);
/* oklch */ color: oklch(41.1% 0.166 314.3);
Tailwind
colors: {
  custom: {
    50: '#9864ab',
    500: '#6a2187',
    950: '#000000',
  },
}
SCSS
$custom: #6a2187;
$custom-light: #9864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2187",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 282.941,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41063,
    "c": 0.1659,
    "h": 314.3
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#6A2187
secondary
#6BB74D
accent
#E44471
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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