#6E1F8F#6E1F8F

#6E1F8F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.177 H 313.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#6E1F8F
RGBrgb(110, 31, 143)
HSLhsl(282, 64%, 34%)
HSVhsv(282, 78%, 56%)
CMYKcmyk(23.1%, 78.3%, 0%, 43.9%)
CIE-LABlab(30.10, 51.25, -45.49)
CIE-LCHlch(30.10, 68.52, 318.41°)
OKLaboklab(42.04% 0.1219 -0.1286)
OKLCHoklch(42.04% 0.177 313.5)
XYZxyz(11.8774, 6.2785, 26.5675)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1F8F #408F1F
analogous
#361F8F #6E1F8F #8F1F78
triadic
#6E1F8F #8F6E1F #1F8F6E
tetradic
#6E1F8F #8F361F #408F1F #1F788F
square
#6E1F8F #8F361F #408F1F #1F788F
split-complementary
#6E1F8F #788F1F #1F8F36
monochromatic
#21092A #47145D #6E1F8F #952AC1 #B04FD9

Accessibility & contrast

On white

9.31
#6E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6E1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E1F8F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1F8F#FFFFFF#000000##FFFFFF
##6E1F8F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#13498D
Tritanopia (blue-blind)
#6B3956
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6e1f8f;
/* rgb */ color: rgb(110, 31, 143);
/* oklch */ color: oklch(42.0% 0.177 313.5);
Tailwind
colors: {
  custom: {
    50: '#9c64b0',
    500: '#6e1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #6e1f8f;
$custom-light: #9c64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1f8f",
  "rgb": {
    "r": 110,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 282.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42042,
    "c": 0.17716,
    "h": 313.5
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#6E1F8F
secondary
#6EBC4E
accent
#E74072
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6E1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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