#6F178E#6F178E

#6F178E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.5% C 0.184 H 314.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#6F178E
RGBrgb(111, 23, 142)
HSLhsl(284, 72%, 32%)
HSVhsv(284, 84%, 56%)
CMYKcmyk(21.8%, 83.8%, 0%, 44.3%)
CIE-LABlab(29.28, 53.88, -46.20)
CIE-LCHlch(29.28, 70.98, 319.39°)
OKLaboklab(41.47% 0.13 -0.1306)
OKLCHoklch(41.47% 0.184 314.9)
XYZxyz(11.7436, 5.9457, 26.1150)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F178E #368E17
analogous
#34178E #6F178E #8E1771
triadic
#6F178E #8E6F17 #178E6F
tetradic
#6F178E #8E3417 #368E17 #17718E
square
#6F178E #8E3417 #368E17 #17718E
split-complementary
#6F178E #718E17 #178E34
monochromatic
#1D0625 #460E59 #6F178E #9820C3 #B63FE0

Accessibility & contrast

On white

9.59
#6F178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6F178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F178E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F178E#FFFFFF#000000##FFFFFF
##6F178E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#0D478C
Tritanopia (blue-blind)
#6C3554
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6f178e;
/* rgb */ color: rgb(111, 23, 142);
/* oklch */ color: oklch(41.5% 0.184 314.9);
Tailwind
colors: {
  custom: {
    50: '#9d61b0',
    500: '#6f178e',
    950: '#000000',
  },
}
SCSS
$custom: #6f178e;
$custom-light: #9d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f178e",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 284.37,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41468,
    "c": 0.18426,
    "h": 314.9
  },
  "luminance": 0.05945
}

Semantic roles & 50–950 ramp

primary
#6F178E
secondary
#62C040
accent
#EF3968
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #6F178E

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

Preview Lab → · Contrast checker → · Palette generator →

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