#6B1171#6B1171

#6B1171 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.163 H 325.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#6B1171
RGBrgb(107, 17, 113)
HSLhsl(296, 74%, 25%)
HSVhsv(296, 85%, 44%)
CMYKcmyk(5.3%, 85%, 0%, 55.7%)
CIE-LABlab(25.92, 49.25, -33.36)
CIE-LCHlch(25.92, 59.48, 325.89°)
OKLaboklab(38.32% 0.1341 -0.093)
OKLCHoklch(38.32% 0.163 325.3)
XYZxyz(9.2443, 4.7196, 16.0437)
Luminance0.0472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1171 #177111
analogous
#3B1171 #6B1171 #711147
triadic
#6B1171 #716B11 #11716B
tetradic
#6B1171 #713B11 #177111 #114771
square
#6B1171 #713B11 #177111 #114771
split-complementary
#6B1171 #477111 #11713B
monochromatic
#19041B #39093C #6B1171 #9D19A6 #D021DB

Accessibility & contrast

On white

10.80
#6B1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1171
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1171#FFFFFF#000000##FFFFFF
##6B11711.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#28416F
Tritanopia (blue-blind)
#6E2442
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6b1171;
/* rgb */ color: rgb(107, 17, 113);
/* oklch */ color: oklch(38.3% 0.163 325.3);
Tailwind
colors: {
  custom: {
    50: '#995d9a',
    500: '#6b1171',
    950: '#000000',
  },
}
SCSS
$custom: #6b1171;
$custom-light: #995d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1171",
  "rgb": {
    "r": 107,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 296.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.38315,
    "c": 0.16323,
    "h": 325.3
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B1171

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

Preview Lab → · Contrast checker → · Palette generator →

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