#6D1887#6D1887

#6D1887 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.176 H 316.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#6D1887
RGBrgb(109, 24, 135)
HSLhsl(286, 70%, 31%)
HSVhsv(286, 82%, 53%)
CMYKcmyk(19.3%, 82.2%, 0%, 47.1%)
CIE-LABlab(28.52, 51.80, -43.08)
CIE-LCHlch(28.52, 67.37, 320.25°)
OKLaboklab(40.71% 0.128 -0.1215)
OKLCHoklch(40.71% 0.177 316.5)
XYZxyz(11.0058, 5.6542, 23.4286)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1887 #328718
analogous
#351887 #6D1887 #871869
triadic
#6D1887 #876D18 #18876D
tetradic
#6D1887 #873518 #328718 #186987
square
#6D1887 #873518 #328718 #186987
split-complementary
#6D1887 #698718 #188735
monochromatic
#19061F #430F53 #6D1887 #9721BB #B73DDC

Accessibility & contrast

On white

9.86
#6D1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6D1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1887
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1887#FFFFFF#000000##FFFFFF
##6D18871.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#6B3250
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6d1887;
/* rgb */ color: rgb(109, 24, 135);
/* oklch */ color: oklch(40.7% 0.176 316.5);
Tailwind
colors: {
  custom: {
    50: '#9b61ab',
    500: '#6d1887',
    950: '#000000',
  },
}
SCSS
$custom: #6d1887;
$custom-light: #9b61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1887",
  "rgb": {
    "r": 109,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 285.946,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.1765,
    "h": 316.5
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#6D1887
secondary
#5DBB40
accent
#ED3B65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D1887

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

Preview Lab → · Contrast checker → · Palette generator →

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