#6A1172#6A1172

#6A1172 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.164 H 324.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#6A1172
RGBrgb(106, 17, 114)
HSLhsl(295, 74%, 26%)
HSVhsv(295, 85%, 45%)
CMYKcmyk(7%, 85.1%, 0%, 55.3%)
CIE-LABlab(25.80, 49.22, -34.20)
CIE-LCHlch(25.80, 59.94, 325.21°)
OKLaboklab(38.22% 0.1328 -0.0955)
OKLCHoklch(38.22% 0.164 324.3)
XYZxyz(9.1813, 4.6806, 16.3362)
Luminance0.0468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1172 #197211
analogous
#3A1172 #6A1172 #721149
triadic
#6A1172 #726A11 #11726A
tetradic
#6A1172 #723A11 #197211 #114972
square
#6A1172 #723A11 #197211 #114972
split-complementary
#6A1172 #497211 #11723A
monochromatic
#19041B #38093D #6A1172 #9C19A7 #CD21DD

Accessibility & contrast

On white

10.85
#6A1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#6A1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1172
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1172#FFFFFF#000000##FFFFFF
##6A11721.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#6C2543
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6a1172;
/* rgb */ color: rgb(106, 17, 114);
/* oklch */ color: oklch(38.2% 0.164 324.3);
Tailwind
colors: {
  custom: {
    50: '#985d9b',
    500: '#6a1172',
    950: '#000000',
  },
}
SCSS
$custom: #6a1172;
$custom-light: #985d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1172",
  "rgb": {
    "r": 106,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 295.052,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.16361,
    "h": 324.3
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#6A1172
secondary
#3FA936
accent
#F13746
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1172

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

Preview Lab → · Contrast checker → · Palette generator →

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