#6C1172#6C1172

#6C1172 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.5% C 0.164 H 325.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#6C1172
RGBrgb(108, 17, 114)
HSLhsl(296, 74%, 26%)
HSVhsv(296, 85%, 45%)
CMYKcmyk(5.3%, 85.1%, 0%, 55.3%)
CIE-LABlab(26.17, 49.63, -33.59)
CIE-LCHlch(26.17, 59.93, 325.91°)
OKLaboklab(38.55% 0.1352 -0.0937)
OKLCHoklch(38.55% 0.164 325.3)
XYZxyz(9.4218, 4.8046, 16.3475)
Luminance0.0480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1172 #177211
analogous
#3B1172 #6C1172 #721147
triadic
#6C1172 #726C11 #11726C
tetradic
#6C1172 #723B11 #177211 #114772
square
#6C1172 #723B11 #177211 #114772
split-complementary
#6C1172 #477211 #11723B
monochromatic
#19041B #3A093D #6C1172 #9E19A7 #D121DD

Accessibility & contrast

On white

10.71
#6C1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#6C1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1172
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1172#FFFFFF#000000##FFFFFF
##6C11721.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#284270
Tritanopia (blue-blind)
#6F2543
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6c1172;
/* rgb */ color: rgb(108, 17, 114);
/* oklch */ color: oklch(38.5% 0.164 325.3);
Tailwind
colors: {
  custom: {
    50: '#9a5d9b',
    500: '#6c1172',
    950: '#000000',
  },
}
SCSS
$custom: #6c1172;
$custom-light: #9a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1172",
  "rgb": {
    "r": 108,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 296.289,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.16448,
    "h": 325.3
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#6C1172
secondary
#3DA936
accent
#F13743
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6C1172

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

Preview Lab → · Contrast checker → · Palette generator →

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