#6D1172#6D1172

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

Color values

HEX#6D1172
RGBrgb(109, 17, 114)
HSLhsl(297, 74%, 26%)
HSVhsv(297, 85%, 45%)
CMYKcmyk(4.4%, 85.1%, 0%, 55.3%)
CIE-LABlab(26.35, 49.84, -33.29)
CIE-LCHlch(26.35, 59.93, 326.26°)
OKLaboklab(38.71% 0.1364 -0.0928)
OKLCHoklch(38.71% 0.165 325.8)
XYZxyz(9.5442, 4.8677, 16.3532)
Luminance0.0487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1172 #167211
analogous
#3C1172 #6D1172 #721146
triadic
#6D1172 #726D11 #11726D
tetradic
#6D1172 #723C11 #167211 #114672
square
#6D1172 #723C11 #167211 #114672
split-complementary
#6D1172 #467211 #11723C
monochromatic
#19041B #3A093D #6D1172 #A019A7 #D321DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6D1172#FFFFFF#000000##FFFFFF
##6D11721.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)
#003774
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#702443
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6d1172;
/* rgb */ color: rgb(109, 17, 114);
/* oklch */ color: oklch(38.7% 0.165 325.8);
Tailwind
colors: {
  custom: {
    50: '#9a5d9b',
    500: '#6d1172',
    950: '#000000',
  },
}
SCSS
$custom: #6d1172;
$custom-light: #9a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1172",
  "rgb": {
    "r": 109,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 296.907,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38713,
    "c": 0.16493,
    "h": 325.8
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#6D1172
secondary
#3CA936
accent
#F13741
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6D1172

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

Preview Lab → · Contrast checker → · Palette generator →

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