#6B1987#6B1987

#6B1987 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.5% C 0.175 H 315.4°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#6B1987
RGBrgb(107, 25, 135)
HSLhsl(285, 69%, 31%)
HSVhsv(285, 81%, 53%)
CMYKcmyk(20.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(28.30, 51.09, -43.45)
CIE-LCHlch(28.30, 67.07, 319.62°)
OKLaboklab(40.49% 0.1246 -0.1227)
OKLCHoklch(40.49% 0.175 315.4)
XYZxyz(10.7835, 5.5708, 23.4242)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1987 #358719
analogous
#341987 #6B1987 #87196C
triadic
#6B1987 #876B19 #19876B
tetradic
#6B1987 #873419 #358719 #196C87
square
#6B1987 #873419 #358719 #196C87
split-complementary
#6B1987 #6C8719 #198734
monochromatic
#190620 #420F53 #6B1987 #9423BB #B43FDB

Accessibility & contrast

On white

9.93
#6B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6B1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1987
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1987#FFFFFF#000000##FFFFFF
##6B19871.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#144585
Tritanopia (blue-blind)
#693350
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b1987;
/* rgb */ color: rgb(107, 25, 135);
/* oklch */ color: oklch(40.5% 0.175 315.4);
Tailwind
colors: {
  custom: {
    50: '#9961ab',
    500: '#6b1987',
    950: '#000000',
  },
}
SCSS
$custom: #6b1987;
$custom-light: #9961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1987",
  "rgb": {
    "r": 107,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 284.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.17484,
    "h": 315.4
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#6B1987
secondary
#60BA41
accent
#EC3C69
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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