#6B1871#6B1871

#6B1871 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.8% C 0.156 H 325.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#6B1871
RGBrgb(107, 24, 113)
HSLhsl(296, 65%, 27%)
HSVhsv(296, 79%, 44%)
CMYKcmyk(5.3%, 78.8%, 0%, 55.7%)
CIE-LABlab(26.65, 47.13, -32.19)
CIE-LCHlch(26.65, 57.07, 325.67°)
OKLaboklab(38.84% 0.1283 -0.0897)
OKLCHoklch(38.84% 0.156 325)
XYZxyz(9.3704, 4.9719, 16.0857)
Luminance0.0497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1871 #1E7118
analogous
#3F1871 #6B1871 #71184B
triadic
#6B1871 #716B18 #18716B
tetradic
#6B1871 #713F18 #1E7118 #184B71
square
#6B1871 #713F18 #1E7118 #184B71
split-complementary
#6B1871 #4B7118 #18713F
monochromatic
#180519 #3B0D3F #6B1871 #9B23A3 #C830D3

Accessibility & contrast

On white

10.53
#6B1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#6B1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1871
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1871#FFFFFF#000000##FFFFFF
##6B18711.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1871;
/* rgb */ color: rgb(107, 24, 113);
/* oklch */ color: oklch(38.8% 0.156 325.0);
Tailwind
colors: {
  custom: {
    50: '#995f9a',
    500: '#6b1871',
    950: '#000000',
  },
}
SCSS
$custom: #6b1871;
$custom-light: #995f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1871",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 295.955,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.15648,
    "h": 325
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#6B1871
secondary
#45A63E
accent
#E8404B
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6B1871

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

Preview Lab → · Contrast checker → · Palette generator →

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