#6B1A87#6B1A87

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

Color values

HEX#6B1A87
RGBrgb(107, 26, 135)
HSLhsl(285, 68%, 32%)
HSVhsv(285, 81%, 53%)
CMYKcmyk(20.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(28.42, 50.76, -43.27)
CIE-LCHlch(28.42, 66.70, 319.56°)
OKLaboklab(40.57% 0.1237 -0.1221)
OKLCHoklch(40.57% 0.174 315.4)
XYZxyz(10.8053, 5.6143, 23.4315)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1A87 #36871A
analogous
#351A87 #6B1A87 #871A6D
triadic
#6B1A87 #876B1A #1A876B
tetradic
#6B1A87 #87351A #36871A #1A6D87
square
#6B1A87 #87351A #36871A #1A6D87
split-complementary
#6B1A87 #6D871A #1A8735
monochromatic
#1A0620 #421054 #6B1A87 #9424BA #B341DA

Accessibility & contrast

On white

9.89
#6B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6B1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1A87
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1A87#FFFFFF#000000##FFFFFF
##6B1A871.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#693451
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b1a87;
/* rgb */ color: rgb(107, 26, 135);
/* oklch */ color: oklch(40.6% 0.174 315.4);
Tailwind
colors: {
  custom: {
    50: '#9961ab',
    500: '#6b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #6b1a87;
$custom-light: #9961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1a87",
  "rgb": {
    "r": 107,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 284.587,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40569,
    "c": 0.17387,
    "h": 315.4
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#6B1A87
secondary
#61BA42
accent
#EB3D6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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