#6A1771#6A1771

#6A1771 is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.6% C 0.157 H 324.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#6A1771
RGBrgb(106, 23, 113)
HSLhsl(295, 66%, 27%)
HSVhsv(295, 80%, 44%)
CMYKcmyk(6.2%, 79.6%, 0%, 55.7%)
CIE-LABlab(26.36, 47.24, -32.67)
CIE-LCHlch(26.36, 57.43, 325.34°)
OKLaboklab(38.59% 0.128 -0.0911)
OKLCHoklch(38.59% 0.157 324.6)
XYZxyz(9.2307, 4.8698, 16.0734)
Luminance0.0487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1771 #1E7117
analogous
#3D1771 #6A1771 #71174B
triadic
#6A1771 #716A17 #17716A
tetradic
#6A1771 #713D17 #1E7117 #174B71
square
#6A1771 #713D17 #1E7117 #174B71
split-complementary
#6A1771 #4B7117 #17713D
monochromatic
#180519 #3A0D3E #6A1771 #9A21A4 #C72ED4

Accessibility & contrast

On white

10.64
#6A1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#6A1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1771
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1771#FFFFFF#000000##FFFFFF
##6A17711.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#2A426F
Tritanopia (blue-blind)
#6C2843
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6a1771;
/* rgb */ color: rgb(106, 23, 113);
/* oklch */ color: oklch(38.6% 0.157 324.6);
Tailwind
colors: {
  custom: {
    50: '#985f9a',
    500: '#6a1771',
    950: '#000000',
  },
}
SCSS
$custom: #6a1771;
$custom-light: #985f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1771",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 295.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.38592,
    "c": 0.15707,
    "h": 324.6
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#6A1771
secondary
#45A73D
accent
#E93F4C
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1771

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

Preview Lab → · Contrast checker → · Palette generator →

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