#6A1887#6A1887

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

Color values

HEX#6A1887
RGBrgb(106, 24, 135)
HSLhsl(284, 70%, 31%)
HSVhsv(284, 82%, 53%)
CMYKcmyk(21.5%, 82.2%, 0%, 47.1%)
CIE-LABlab(28.03, 51.23, -43.91)
CIE-LCHlch(28.03, 67.47, 319.40°)
OKLaboklab(40.26% 0.1241 -0.124)
OKLCHoklch(40.26% 0.175 315)
XYZxyz(10.6429, 5.4671, 23.4116)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1887 #358718
analogous
#321887 #6A1887 #87186C
triadic
#6A1887 #876A18 #18876A
tetradic
#6A1887 #873218 #358718 #186C87
square
#6A1887 #873218 #358718 #186C87
split-complementary
#6A1887 #6C8718 #188732
monochromatic
#18061F #410F53 #6A1887 #9321BB #B33DDC

Accessibility & contrast

On white

10.03
#6A1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6A1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1887
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1887#FFFFFF#000000##FFFFFF
##6A18871.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1887;
/* rgb */ color: rgb(106, 24, 135);
/* oklch */ color: oklch(40.3% 0.175 315.0);
Tailwind
colors: {
  custom: {
    50: '#9960ab',
    500: '#6a1887',
    950: '#000000',
  },
}
SCSS
$custom: #6a1887;
$custom-light: #9960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1887",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 284.324,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40262,
    "c": 0.17543,
    "h": 315
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#6A1887
secondary
#60BB40
accent
#ED3B6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1887

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

Preview Lab → · Contrast checker → · Palette generator →

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