#6A1877#6A1877

#6A1877 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 39.1% C 0.161 H 321.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#6A1877
RGBrgb(106, 24, 119)
HSLhsl(292, 66%, 28%)
HSVhsv(292, 80%, 47%)
CMYKcmyk(10.9%, 79.8%, 0%, 53.3%)
CIE-LABlab(26.88, 48.04, -35.67)
CIE-LCHlch(26.88, 59.84, 323.40°)
OKLaboklab(39.09% 0.1265 -0.0999)
OKLCHoklch(39.09% 0.161 321.7)
XYZxyz(9.5999, 5.0499, 17.9183)
Luminance0.0505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1877 #257718
analogous
#3A1877 #6A1877 #771855
triadic
#6A1877 #776A18 #18776A
tetradic
#6A1877 #773A18 #257718 #185577
square
#6A1877 #773A18 #257718 #185577
split-complementary
#6A1877 #557718 #18773A
monochromatic
#170519 #3D0E44 #6A1877 #9722AA #C033D6

Accessibility & contrast

On white

10.45
#6A1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#6A1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1877
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1877#FFFFFF#000000##FFFFFF
##6A18771.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#254275
Tritanopia (blue-blind)
#6B2B47
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a1877;
/* rgb */ color: rgb(106, 24, 119);
/* oklch */ color: oklch(39.1% 0.161 321.7);
Tailwind
colors: {
  custom: {
    50: '#985f9f',
    500: '#6a1877',
    950: '#000000',
  },
}
SCSS
$custom: #6a1877;
$custom-light: #985f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1877",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 291.789,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.39086,
    "c": 0.16122,
    "h": 321.7
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#6A1877
secondary
#4EAC3F
accent
#E93E56
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1877

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

Preview Lab → · Contrast checker → · Palette generator →

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