#6E1271#6E1271

#6E1271 is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.9% C 0.164 H 326.7°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#6E1271
RGBrgb(110, 18, 113)
HSLhsl(298, 73%, 26%)
HSVhsv(298, 84%, 44%)
CMYKcmyk(2.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(26.56, 49.60, -32.30)
CIE-LCHlch(26.56, 59.19, 326.93°)
OKLaboklab(38.88% 0.1369 -0.0899)
OKLCHoklch(38.88% 0.164 326.7)
XYZxyz(9.6272, 4.9406, 16.0661)
Luminance0.0494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1271 #157112
analogous
#3E1271 #6E1271 #711244
triadic
#6E1271 #716E12 #12716E
tetradic
#6E1271 #713E12 #157112 #124471
square
#6E1271 #713E12 #157112 #124471
split-complementary
#6E1271 #447112 #12713E
monochromatic
#1A041A #3B0A3C #6E1271 #A11AA6 #D523DB

Accessibility & contrast

On white

10.56
#6E1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6E1271
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1271#FFFFFF#000000##FFFFFF
##6E12711.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#2C436F
Tritanopia (blue-blind)
#712442
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6e1271;
/* rgb */ color: rgb(110, 18, 113);
/* oklch */ color: oklch(38.9% 0.164 326.7);
Tailwind
colors: {
  custom: {
    50: '#9b5e9a',
    500: '#6e1271',
    950: '#000000',
  },
}
SCSS
$custom: #6e1271;
$custom-light: #9b5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1271",
  "rgb": {
    "r": 110,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 298.105,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38876,
    "c": 0.16372,
    "h": 326.7
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#6E1271
secondary
#3AA837
accent
#EF393E
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0F050E
muted
#7E797E

Preview Lab

Preview with #6E1271

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

Preview Lab → · Contrast checker → · Palette generator →

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