#8F17B4#8F17B4

#8F17B4 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 49.1% C 0.226 H 315.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8F17B4
RGBrgb(143, 23, 180)
HSLhsl(286, 77%, 40%)
HSVhsv(286, 87%, 71%)
CMYKcmyk(20.6%, 87.2%, 0%, 29.4%)
CIE-LABlab(37.39, 66.64, -55.82)
CIE-LCHlch(37.39, 86.93, 320.05°)
OKLaboklab(49.06% 0.1623 -0.1578)
OKLCHoklch(49.06% 0.226 315.8)
XYZxyz(19.8710, 9.7485, 44.0061)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F17B4 #3CB417
analogous
#4117B4 #8F17B4 #B4178A
triadic
#8F17B4 #B48F17 #17B48F
tetradic
#8F17B4 #B44117 #3CB417 #178AB4
square
#8F17B4 #B44117 #3CB417 #178AB4
split-complementary
#8F17B4 #8AB417 #17B441
monochromatic
#390947 #64107E #8F17B4 #B625E3 #C85BEA

Accessibility & contrast

On white

7.12
#8F17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8F17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F17B4
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F17B4#FFFFFF#000000##FFFFFF
##8F17B41.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0E5BB1
Tritanopia (blue-blind)
#8C426B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8f17b4;
/* rgb */ color: rgb(143, 23, 180);
/* oklch */ color: oklch(49.1% 0.226 315.8);
Tailwind
colors: {
  custom: {
    50: '#b568cb',
    500: '#8f17b4',
    950: '#000000',
  },
}
SCSS
$custom: #8f17b4;
$custom-light: #b568cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f17b4",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 285.86,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49059,
    "c": 0.22632,
    "h": 315.8
  },
  "luminance": 0.09748
}

Semantic roles & 50–950 ramp

primary
#8F17B4
secondary
#75CE59
accent
#F43461
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8F17B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8F17B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva