#6A1A8A#6A1A8A

#6A1A8A is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.176 H 313.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#6A1A8A
RGBrgb(106, 26, 138)
HSLhsl(283, 68%, 32%)
HSVhsv(283, 81%, 54%)
CMYKcmyk(23.2%, 81.2%, 0%, 45.9%)
CIE-LABlab(28.48, 51.19, -45.04)
CIE-LCHlch(28.48, 68.19, 318.66°)
OKLaboklab(40.65% 0.1218 -0.1274)
OKLCHoklch(40.65% 0.176 313.7)
XYZxyz(10.8999, 5.6383, 24.5540)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1A8A #3A8A1A
analogous
#321A8A #6A1A8A #8A1A72
triadic
#6A1A8A #8A6A1A #1A8A6A
tetradic
#6A1A8A #8A321A #3A8A1A #1A728A
square
#6A1A8A #8A321A #3A8A1A #1A728A
split-complementary
#6A1A8A #728A1A #1A8A32
monochromatic
#1B0723 #421057 #6A1A8A #9224BD #B043DC

Accessibility & contrast

On white

9.87
#6A1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1A8A
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1A8A#FFFFFF#000000##FFFFFF
##6A1A8A1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#673552
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a1a8a;
/* rgb */ color: rgb(106, 26, 138);
/* oklch */ color: oklch(40.7% 0.176 313.7);
Tailwind
colors: {
  custom: {
    50: '#9961ad',
    500: '#6a1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a1a8a;
$custom-light: #9961ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1a8a",
  "rgb": {
    "r": 106,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 282.857,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40653,
    "c": 0.17625,
    "h": 313.7
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#6A1A8A
secondary
#66BD43
accent
#EB3D6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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