#6D1871#6D1871

#6D1871 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.2% C 0.157 H 326.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#6D1871
RGBrgb(109, 24, 113)
HSLhsl(297, 65%, 27%)
HSVhsv(297, 79%, 44%)
CMYKcmyk(3.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(27.01, 47.57, -31.60)
CIE-LCHlch(27.01, 57.11, 326.41°)
OKLaboklab(39.16% 0.1306 -0.0879)
OKLCHoklch(39.16% 0.157 326.1)
XYZxyz(9.6138, 5.0974, 16.0971)
Luminance0.0510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1871 #1C7118
analogous
#411871 #6D1871 #711849
triadic
#6D1871 #716D18 #18716D
tetradic
#6D1871 #714118 #1C7118 #184971
square
#6D1871 #714118 #1C7118 #184971
split-complementary
#6D1871 #497118 #187141
monochromatic
#180519 #3C0D3F #6D1871 #9E23A3 #CC30D3

Accessibility & contrast

On white

10.40
#6D1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#6D1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1871
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1871#FFFFFF#000000##FFFFFF
##6D18711.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#2D436F
Tritanopia (blue-blind)
#702844
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6d1871;
/* rgb */ color: rgb(109, 24, 113);
/* oklch */ color: oklch(39.2% 0.157 326.1);
Tailwind
colors: {
  custom: {
    50: '#9a609a',
    500: '#6d1871',
    950: '#000000',
  },
}
SCSS
$custom: #6d1871;
$custom-light: #9a609a;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1871",
  "rgb": {
    "r": 109,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 297.303,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.15744,
    "h": 326.1
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#6D1871
secondary
#43A63E
accent
#E84047
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6D1871

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

Preview Lab → · Contrast checker → · Palette generator →

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