#6A1171#6A1171

#6A1171 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.163 H 324.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#6A1171
RGBrgb(106, 17, 113)
HSLhsl(296, 74%, 25%)
HSVhsv(296, 85%, 44%)
CMYKcmyk(6.2%, 85%, 0%, 55.7%)
CIE-LABlab(25.74, 49.04, -33.66)
CIE-LCHlch(25.74, 59.48, 325.53°)
OKLaboklab(38.15% 0.1329 -0.094)
OKLCHoklch(38.15% 0.163 324.7)
XYZxyz(9.1247, 4.6579, 16.0380)
Luminance0.0466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1171 #187111
analogous
#3A1171 #6A1171 #711148
triadic
#6A1171 #716A11 #11716A
tetradic
#6A1171 #713A11 #187111 #114871
square
#6A1171 #713A11 #187111 #114871
split-complementary
#6A1171 #487111 #11713A
monochromatic
#19041B #38093C #6A1171 #9C19A6 #CE21DB

Accessibility & contrast

On white

10.87
#6A1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#6A1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1171
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1171#FFFFFF#000000##FFFFFF
##6A11711.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#27406F
Tritanopia (blue-blind)
#6C2542
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6a1171;
/* rgb */ color: rgb(106, 17, 113);
/* oklch */ color: oklch(38.1% 0.163 324.7);
Tailwind
colors: {
  custom: {
    50: '#985d9a',
    500: '#6a1171',
    950: '#000000',
  },
}
SCSS
$custom: #6a1171;
$custom-light: #985d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1171",
  "rgb": {
    "r": 106,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 295.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.16279,
    "h": 324.7
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#6A1171
secondary
#3EA836
accent
#F13745
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1171

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

Preview Lab → · Contrast checker → · Palette generator →

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