#6A1B87#6A1B87

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

Color values

HEX#6A1B87
RGBrgb(106, 27, 135)
HSLhsl(284, 67%, 32%)
HSVhsv(284, 80%, 53%)
CMYKcmyk(21.5%, 80%, 0%, 47.1%)
CIE-LABlab(28.37, 50.22, -43.35)
CIE-LCHlch(28.37, 66.34, 319.20°)
OKLaboklab(40.51% 0.1216 -0.1224)
OKLCHoklch(40.51% 0.173 314.8)
XYZxyz(10.7082, 5.5977, 23.4334)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B87 #38871B
analogous
#341B87 #6A1B87 #871B6E
triadic
#6A1B87 #876A1B #1B876A
tetradic
#6A1B87 #87341B #38871B #1B6E87
square
#6A1B87 #87341B #38871B #1B6E87
split-complementary
#6A1B87 #6E871B #1B8734
monochromatic
#1A0721 #421154 #6A1B87 #9225BA #B143D9

Accessibility & contrast

On white

9.91
#6A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1B87
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B87#FFFFFF#000000##FFFFFF
##6A1B871.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1b87;
/* rgb */ color: rgb(106, 27, 135);
/* oklch */ color: oklch(40.5% 0.173 314.8);
Tailwind
colors: {
  custom: {
    50: '#9962ab',
    500: '#6a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b87;
$custom-light: #9962ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b87",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 283.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40506,
    "c": 0.17251,
    "h": 314.8
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#6A1B87
secondary
#63BA44
accent
#EA3E6C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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