#6E178C#6E178C

#6E178C is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.2% C 0.182 H 315.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#6E178C
RGBrgb(110, 23, 140)
HSLhsl(285, 72%, 32%)
HSVhsv(285, 84%, 55%)
CMYKcmyk(21.4%, 83.6%, 0%, 45.1%)
CIE-LABlab(28.96, 53.30, -45.48)
CIE-LCHlch(28.96, 70.07, 319.52°)
OKLaboklab(41.17% 0.1291 -0.1285)
OKLCHoklch(41.17% 0.182 315.1)
XYZxyz(11.4696, 5.8217, 25.3254)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E178C #358C17
analogous
#33178C #6E178C #8C1770
triadic
#6E178C #8C6E17 #178C6E
tetradic
#6E178C #8C3317 #358C17 #17708C
square
#6E178C #8C3317 #358C17 #17708C
split-complementary
#6E178C #708C17 #178C33
monochromatic
#1B0623 #450E57 #6E178C #9720C1 #B63EDF

Accessibility & contrast

On white

9.70
#6E178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6E178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E178C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E178C#FFFFFF#000000##FFFFFF
##6E178C1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#0F468A
Tritanopia (blue-blind)
#6B3453
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6e178c;
/* rgb */ color: rgb(110, 23, 140);
/* oklch */ color: oklch(41.2% 0.182 315.1);
Tailwind
colors: {
  custom: {
    50: '#9c61ae',
    500: '#6e178c',
    950: '#000000',
  },
}
SCSS
$custom: #6e178c;
$custom-light: #9c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6e178c",
  "rgb": {
    "r": 110,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 284.615,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41165,
    "c": 0.18216,
    "h": 315.1
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#6E178C
secondary
#60BF3F
accent
#EF3968
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6E178C

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

Preview Lab → · Contrast checker → · Palette generator →

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