#6C1771#6C1771

#6C1771 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.9% C 0.158 H 325.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#6C1771
RGBrgb(108, 23, 113)
HSLhsl(297, 66%, 27%)
HSVhsv(297, 80%, 44%)
CMYKcmyk(4.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(26.72, 47.68, -32.08)
CIE-LCHlch(26.72, 57.47, 326.07°)
OKLaboklab(38.92% 0.1304 -0.0893)
OKLCHoklch(38.92% 0.158 325.6)
XYZxyz(9.4712, 4.9938, 16.0846)
Luminance0.0499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1771 #1C7117
analogous
#3F1771 #6C1771 #711749
triadic
#6C1771 #716C17 #17716C
tetradic
#6C1771 #713F17 #1C7117 #174971
square
#6C1771 #713F17 #1C7117 #174971
split-complementary
#6C1771 #497117 #17713F
monochromatic
#180519 #3B0D3E #6C1771 #9D21A4 #CB2ED4

Accessibility & contrast

On white

10.51
#6C1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#6C1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1771
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1771#FFFFFF#000000##FFFFFF
##6C17711.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#2C436F
Tritanopia (blue-blind)
#6F2743
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6c1771;
/* rgb */ color: rgb(108, 23, 113);
/* oklch */ color: oklch(38.9% 0.158 325.6);
Tailwind
colors: {
  custom: {
    50: '#995f9a',
    500: '#6c1771',
    950: '#000000',
  },
}
SCSS
$custom: #6c1771;
$custom-light: #995f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1771",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 296.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.38915,
    "c": 0.15801,
    "h": 325.6
  },
  "luminance": 0.04993
}

Semantic roles & 50–950 ramp

primary
#6C1771
secondary
#43A73D
accent
#E93F48
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6C1771

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

Preview Lab → · Contrast checker → · Palette generator →

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