#6B1172#6B1172

#6B1172 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.4% C 0.164 H 324.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#6B1172
RGBrgb(107, 17, 114)
HSLhsl(296, 74%, 26%)
HSVhsv(296, 85%, 45%)
CMYKcmyk(6.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(25.99, 49.43, -33.89)
CIE-LCHlch(25.99, 59.93, 325.56°)
OKLaboklab(38.38% 0.134 -0.0946)
OKLCHoklch(38.38% 0.164 324.8)
XYZxyz(9.3009, 4.7422, 16.3418)
Luminance0.0474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1172 #187211
analogous
#3A1172 #6B1172 #721148
triadic
#6B1172 #726B11 #11726B
tetradic
#6B1172 #723A11 #187211 #114872
square
#6B1172 #723A11 #187211 #114872
split-complementary
#6B1172 #487211 #11723A
monochromatic
#19041B #39093D #6B1172 #9D19A7 #CF21DD

Accessibility & contrast

On white

10.78
#6B1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#6B1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1172
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1172#FFFFFF#000000##FFFFFF
##6B11721.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1172;
/* rgb */ color: rgb(107, 17, 114);
/* oklch */ color: oklch(38.4% 0.164 324.8);
Tailwind
colors: {
  custom: {
    50: '#995d9b',
    500: '#6b1172',
    950: '#000000',
  },
}
SCSS
$custom: #6b1172;
$custom-light: #995d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1172",
  "rgb": {
    "r": 107,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 295.67,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.16404,
    "h": 324.8
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#6B1172
secondary
#3EA936
accent
#F13745
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6B1172

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

Preview Lab → · Contrast checker → · Palette generator →

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