#6F178F#6F178F

#6F178F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.185 H 314.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#6F178F
RGBrgb(111, 23, 143)
HSLhsl(284, 72%, 33%)
HSVhsv(284, 84%, 56%)
CMYKcmyk(22.4%, 83.9%, 0%, 43.9%)
CIE-LABlab(29.35, 54.08, -46.70)
CIE-LCHlch(29.35, 71.45, 319.19°)
OKLaboklab(41.55% 0.1298 -0.132)
OKLCHoklch(41.55% 0.185 314.5)
XYZxyz(11.8190, 5.9759, 26.5122)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F178F #378F17
analogous
#33178F #6F178F #8F1773
triadic
#6F178F #8F6F17 #178F6F
tetradic
#6F178F #8F3317 #378F17 #17738F
square
#6F178F #8F3317 #378F17 #17738F
split-complementary
#6F178F #738F17 #178F33
monochromatic
#1D0626 #460F5A #6F178F #981FC4 #B640E0

Accessibility & contrast

On white

9.57
#6F178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6F178F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F178F#FFFFFF#000000##FFFFFF
##6F178F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#0A478D
Tritanopia (blue-blind)
#6C3555
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6f178f;
/* rgb */ color: rgb(111, 23, 143);
/* oklch */ color: oklch(41.5% 0.185 314.5);
Tailwind
colors: {
  custom: {
    50: '#9d61b1',
    500: '#6f178f',
    950: '#000000',
  },
}
SCSS
$custom: #6f178f;
$custom-light: #9d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6f178f",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 284,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.18513,
    "h": 314.5
  },
  "luminance": 0.05975
}

Semantic roles & 50–950 ramp

primary
#6F178F
secondary
#63C141
accent
#EF3969
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6F178F

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

Preview Lab → · Contrast checker → · Palette generator →

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