#6C1271#6C1271

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

Color values

HEX#6C1271
RGBrgb(108, 18, 113)
HSLhsl(297, 73%, 26%)
HSVhsv(297, 84%, 44%)
CMYKcmyk(4.4%, 84.1%, 0%, 55.7%)
CIE-LABlab(26.20, 49.18, -32.91)
CIE-LCHlch(26.20, 59.18, 326.22°)
OKLaboklab(38.55% 0.1345 -0.0917)
OKLCHoklch(38.55% 0.163 325.7)
XYZxyz(9.3811, 4.8137, 16.0546)
Luminance0.0481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1271 #177112
analogous
#3C1271 #6C1271 #711246
triadic
#6C1271 #716C12 #12716C
tetradic
#6C1271 #713C12 #177112 #124671
square
#6C1271 #713C12 #177112 #124671
split-complementary
#6C1271 #467112 #12713C
monochromatic
#19041A #3A0A3C #6C1271 #9E1AA6 #D123DB

Accessibility & contrast

On white

10.70
#6C1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C1271
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1271#FFFFFF#000000##FFFFFF
##6C12711.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#29426F
Tritanopia (blue-blind)
#6F2542
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6c1271;
/* rgb */ color: rgb(108, 18, 113);
/* oklch */ color: oklch(38.5% 0.163 325.7);
Tailwind
colors: {
  custom: {
    50: '#9a5d9a',
    500: '#6c1271',
    950: '#000000',
  },
}
SCSS
$custom: #6c1271;
$custom-light: #9a5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1271",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 296.842,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.16281,
    "h": 325.7
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#6C1271
secondary
#3DA837
accent
#EF3942
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6C1271

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

Preview Lab → · Contrast checker → · Palette generator →

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