#6E1871#6E1871

#6E1871 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.3% C 0.158 H 326.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#6E1871
RGBrgb(110, 24, 113)
HSLhsl(298, 65%, 27%)
HSVhsv(298, 79%, 44%)
CMYKcmyk(2.7%, 78.8%, 0%, 55.7%)
CIE-LABlab(27.19, 47.80, -31.30)
CIE-LCHlch(27.19, 57.14, 326.78°)
OKLaboklab(39.32% 0.1318 -0.087)
OKLCHoklch(39.32% 0.158 326.6)
XYZxyz(9.7375, 5.1612, 16.1029)
Luminance0.0516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1871 #1B7118
analogous
#421871 #6E1871 #711848
triadic
#6E1871 #716E18 #18716E
tetradic
#6E1871 #714218 #1B7118 #184871
square
#6E1871 #714218 #1B7118 #184871
split-complementary
#6E1871 #487118 #187142
monochromatic
#190519 #3D0D3F #6E1871 #9F23A3 #CE30D3

Accessibility & contrast

On white

10.33
#6E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#6E1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E1871
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1871#FFFFFF#000000##FFFFFF
##6E18711.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6e1871;
/* rgb */ color: rgb(110, 24, 113);
/* oklch */ color: oklch(39.3% 0.158 326.6);
Tailwind
colors: {
  custom: {
    50: '#9b609a',
    500: '#6e1871',
    950: '#000000',
  },
}
SCSS
$custom: #6e1871;
$custom-light: #9b609a;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1871",
  "rgb": {
    "r": 110,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 297.978,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3932,
    "c": 0.15793,
    "h": 326.6
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#6E1871
secondary
#42A63E
accent
#E84046
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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