#6E1872#6E1872

#6E1872 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.4% C 0.159 H 326.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#6E1872
RGBrgb(110, 24, 114)
HSLhsl(297, 65%, 27%)
HSVhsv(297, 79%, 45%)
CMYKcmyk(3.5%, 78.9%, 0%, 55.3%)
CIE-LABlab(27.25, 47.98, -31.84)
CIE-LCHlch(27.25, 57.58, 326.43°)
OKLaboklab(39.39% 0.1318 -0.0886)
OKLCHoklch(39.39% 0.159 326.1)
XYZxyz(9.7941, 5.1838, 16.4010)
Luminance0.0518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1872 #1C7218
analogous
#411872 #6E1872 #721849
triadic
#6E1872 #726E18 #18726E
tetradic
#6E1872 #724118 #1C7218 #184972
square
#6E1872 #724118 #1C7218 #184972
split-complementary
#6E1872 #497218 #187241
monochromatic
#180519 #3D0D3F #6E1872 #9F23A5 #CC31D4

Accessibility & contrast

On white

10.31
#6E1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6E1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E1872
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1872#FFFFFF#000000##FFFFFF
##6E18721.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#2D4470
Tritanopia (blue-blind)
#712844
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6e1872;
/* rgb */ color: rgb(110, 24, 114);
/* oklch */ color: oklch(39.4% 0.159 326.1);
Tailwind
colors: {
  custom: {
    50: '#9b609b',
    500: '#6e1872',
    950: '#000000',
  },
}
SCSS
$custom: #6e1872;
$custom-light: #9b609b;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1872",
  "rgb": {
    "r": 110,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 297.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.39385,
    "c": 0.15877,
    "h": 326.1
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6E1872

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

Preview Lab → · Contrast checker → · Palette generator →

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