#6A1C87#6A1C87

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

Color values

HEX#6A1C87
RGBrgb(106, 28, 135)
HSLhsl(284, 66%, 32%)
HSVhsv(284, 79%, 53%)
CMYKcmyk(21.5%, 79.3%, 0%, 47.1%)
CIE-LABlab(28.50, 49.87, -43.15)
CIE-LCHlch(28.50, 65.94, 319.13°)
OKLaboklab(40.59% 0.1207 -0.1218)
OKLCHoklch(40.59% 0.171 314.7)
XYZxyz(10.7316, 5.6443, 23.4411)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1C87 #39871C
analogous
#341C87 #6A1C87 #871C6F
triadic
#6A1C87 #876A1C #1C876A
tetradic
#6A1C87 #87341C #39871C #1C6F87
square
#6A1C87 #87341C #39871C #1C6F87
split-complementary
#6A1C87 #6F871C #1C8734
monochromatic
#1A0722 #421154 #6A1C87 #9227BA #B045D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A1C87#FFFFFF#000000##FFFFFF
##6A1C871.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)
#003F8A
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#673551
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a1c87;
/* rgb */ color: rgb(106, 28, 135);
/* oklch */ color: oklch(40.6% 0.171 314.7);
Tailwind
colors: {
  custom: {
    50: '#9962ab',
    500: '#6a1c87',
    950: '#000000',
  },
}
SCSS
$custom: #6a1c87;
$custom-light: #9962ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1c87",
  "rgb": {
    "r": 106,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 283.738,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40593,
    "c": 0.17147,
    "h": 314.7
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#6A1C87
secondary
#65BA45
accent
#E93F6D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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