#6E1771#6E1771

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

Color values

HEX#6E1771
RGBrgb(110, 23, 113)
HSLhsl(298, 66%, 27%)
HSVhsv(298, 80%, 44%)
CMYKcmyk(2.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(27.08, 48.13, -31.48)
CIE-LCHlch(27.08, 57.51, 326.81°)
OKLaboklab(39.24% 0.1327 -0.0875)
OKLCHoklch(39.24% 0.159 326.6)
XYZxyz(9.7173, 5.1207, 16.0962)
Luminance0.0512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1771 #1A7117
analogous
#411771 #6E1771 #711747
triadic
#6E1771 #716E17 #17716E
tetradic
#6E1771 #714117 #1A7117 #174771
square
#6E1771 #714117 #1A7117 #174771
split-complementary
#6E1771 #477117 #177141
monochromatic
#190519 #3D0D3E #6E1771 #A021A4 #CF2ED4

Accessibility & contrast

On white

10.38
#6E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6E1771
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1771#FFFFFF#000000##FFFFFF
##6E17711.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6e1771;
/* rgb */ color: rgb(110, 23, 113);
/* oklch */ color: oklch(39.2% 0.159 326.6);
Tailwind
colors: {
  custom: {
    50: '#9b5f9a',
    500: '#6e1771',
    950: '#000000',
  },
}
SCSS
$custom: #6e1771;
$custom-light: #9b5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1771",
  "rgb": {
    "r": 110,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 298,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.39239,
    "c": 0.15897,
    "h": 326.6
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#6E1771
secondary
#41A73D
accent
#E93F44
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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