#6A1987#6A1987

#6A1987 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.3% C 0.174 H 314.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#6A1987
RGBrgb(106, 25, 135)
HSLhsl(284, 69%, 31%)
HSVhsv(284, 81%, 53%)
CMYKcmyk(21.5%, 81.5%, 0%, 47.1%)
CIE-LABlab(28.14, 50.90, -43.73)
CIE-LCHlch(28.14, 67.11, 319.34°)
OKLaboklab(40.34% 0.1233 -0.1235)
OKLCHoklch(40.34% 0.174 314.9)
XYZxyz(10.6639, 5.5091, 23.4186)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1987 #368719
analogous
#331987 #6A1987 #87196D
triadic
#6A1987 #876A19 #19876A
tetradic
#6A1987 #873319 #368719 #196D87
square
#6A1987 #873319 #368719 #196D87
split-complementary
#6A1987 #6D8719 #198733
monochromatic
#190620 #410F53 #6A1987 #9323BB #B23FDB

Accessibility & contrast

On white

9.99
#6A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1987
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1987#FFFFFF#000000##FFFFFF
##6A19871.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#124485
Tritanopia (blue-blind)
#673350
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a1987;
/* rgb */ color: rgb(106, 25, 135);
/* oklch */ color: oklch(40.3% 0.174 314.9);
Tailwind
colors: {
  custom: {
    50: '#9961ab',
    500: '#6a1987',
    950: '#000000',
  },
}
SCSS
$custom: #6a1987;
$custom-light: #9961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1987",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 284.182,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.17449,
    "h": 314.9
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#6A1987
secondary
#61BA41
accent
#EC3C6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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