#6F178D#6F178D

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

Color values

HEX#6F178D
RGBrgb(111, 23, 141)
HSLhsl(285, 72%, 32%)
HSVhsv(285, 84%, 55%)
CMYKcmyk(21.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(29.20, 53.68, -45.71)
CIE-LCHlch(29.20, 70.50, 319.59°)
OKLaboklab(41.39% 0.1302 -0.1291)
OKLCHoklch(41.39% 0.183 315.2)
XYZxyz(11.6689, 5.9158, 25.7213)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F178D #358D17
analogous
#34178D #6F178D #8D1770
triadic
#6F178D #8D6F17 #178D6F
tetradic
#6F178D #8D3417 #358D17 #17708D
square
#6F178D #8D3417 #358D17 #17708D
split-complementary
#6F178D #708D17 #178D34
monochromatic
#1C0624 #460E58 #6F178D #9820C2 #B73FE0

Accessibility & contrast

On white

9.62
#6F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F178D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F178D#FFFFFF#000000##FFFFFF
##6F178D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#10478B
Tritanopia (blue-blind)
#6C3454
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6f178d;
/* rgb */ color: rgb(111, 23, 141);
/* oklch */ color: oklch(41.4% 0.183 315.2);
Tailwind
colors: {
  custom: {
    50: '#9d61af',
    500: '#6f178d',
    950: '#000000',
  },
}
SCSS
$custom: #6f178d;
$custom-light: #9d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#6f178d",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 284.746,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41391,
    "c": 0.18338,
    "h": 315.2
  },
  "luminance": 0.05915
}

Semantic roles & 50–950 ramp

primary
#6F178D
secondary
#60C040
accent
#EF3967
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #6F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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