#6F178B#6F178B

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

Color values

HEX#6F178B
RGBrgb(111, 23, 139)
HSLhsl(286, 72%, 32%)
HSVhsv(286, 83%, 55%)
CMYKcmyk(20.1%, 83.5%, 0%, 45.5%)
CIE-LABlab(29.05, 53.28, -44.71)
CIE-LCHlch(29.05, 69.55, 320.00°)
OKLaboklab(41.24% 0.1306 -0.1262)
OKLCHoklch(41.24% 0.182 316)
XYZxyz(11.5214, 5.8569, 24.9447)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F178B #338B17
analogous
#35178B #6F178B #8B176D
triadic
#6F178B #8B6F17 #178B6F
tetradic
#6F178B #8B3517 #338B17 #176D8B
square
#6F178B #8B3517 #338B17 #176D8B
split-complementary
#6F178B #6D8B17 #178B35
monochromatic
#1B0622 #450E56 #6F178B #9920C0 #B83DDF

Accessibility & contrast

On white

9.67
#6F178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6F178B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F178B#FFFFFF#000000##FFFFFF
##6F178B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#144789
Tritanopia (blue-blind)
#6D3352
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6f178b;
/* rgb */ color: rgb(111, 23, 139);
/* oklch */ color: oklch(41.2% 0.182 316.0);
Tailwind
colors: {
  custom: {
    50: '#9d61ae',
    500: '#6f178b',
    950: '#000000',
  },
}
SCSS
$custom: #6f178b;
$custom-light: #9d61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6f178b",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 285.517,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41238,
    "c": 0.18163,
    "h": 316
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#6F178B
secondary
#5EBF3F
accent
#EE3965
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6F178B

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

Preview Lab → · Contrast checker → · Palette generator →

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