#6E178D#6E178D

#6E178D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.183 H 314.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#6E178D
RGBrgb(110, 23, 141)
HSLhsl(284, 72%, 32%)
HSVhsv(284, 84%, 55%)
CMYKcmyk(22%, 83.7%, 0%, 44.7%)
CIE-LABlab(29.03, 53.50, -45.98)
CIE-LCHlch(29.03, 70.54, 319.32°)
OKLaboklab(41.24% 0.1289 -0.13)
OKLCHoklch(41.24% 0.183 314.8)
XYZxyz(11.5437, 5.8513, 25.7155)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E178D #368D17
analogous
#33178D #6E178D #8D1771
triadic
#6E178D #8D6E17 #178D6E
tetradic
#6E178D #8D3317 #368D17 #17718D
square
#6E178D #8D3317 #368D17 #17718D
split-complementary
#6E178D #718D17 #178D33
monochromatic
#1C0624 #450E58 #6E178D #9720C2 #B53FE0

Accessibility & contrast

On white

9.68
#6E178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6E178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E178D
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E178D#FFFFFF#000000##FFFFFF
##6E178D1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#0D468B
Tritanopia (blue-blind)
#6B3554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6e178d;
/* rgb */ color: rgb(110, 23, 141);
/* oklch */ color: oklch(41.2% 0.183 314.8);
Tailwind
colors: {
  custom: {
    50: '#9c61af',
    500: '#6e178d',
    950: '#000000',
  },
}
SCSS
$custom: #6e178d;
$custom-light: #9c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#6e178d",
  "rgb": {
    "r": 110,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 284.237,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41243,
    "c": 0.18304,
    "h": 314.8
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#6E178D
secondary
#62C040
accent
#EF3969
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6E178D

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

Preview Lab → · Contrast checker → · Palette generator →

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