#8F318F#8F318F

#8F318F is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.7% C 0.170 H 327.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8F318F
RGBrgb(143, 49, 143)
HSLhsl(300, 49%, 38%)
HSVhsv(300, 66%, 56%)
CMYKcmyk(0%, 65.7%, 0%, 43.9%)
CIE-LABlab(37.88, 51.58, -32.75)
CIE-LCHlch(37.88, 61.10, 327.58°)
OKLaboklab(48.65% 0.1437 -0.0905)
OKLCHoklch(48.65% 0.17 327.8)
XYZxyz(17.3837, 10.0206, 26.9998)
Luminance0.1002 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F318F #318F31
analogous
#60318F #8F318F #8F3160
triadic
#8F318F #8F8F31 #318F8F
tetradic
#8F318F #8F6031 #318F31 #31608F
square
#8F318F #8F6031 #318F31 #31608F
split-complementary
#8F318F #608F31 #318F60
monochromatic
#341234 #612161 #8F318F #BD41BD #CD6DCD

Accessibility & contrast

On white

6.99
#8F318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#8F318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F318F
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F318F#FFFFFF#000000##FFFFFF
##8F318F1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245192
Deuteranopia (green-blind)
#485D8C
Tritanopia (blue-blind)
#933E5C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f318f;
/* rgb */ color: rgb(143, 49, 143);
/* oklch */ color: oklch(48.7% 0.170 327.8);
Tailwind
colors: {
  custom: {
    50: '#b371b0',
    500: '#8f318f',
    950: '#000000',
  },
}
SCSS
$custom: #8f318f;
$custom-light: #b371b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f318f",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 300,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.16985,
    "h": 327.8
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#8F318F
secondary
#67B567
accent
#D94F4F
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F318F

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

Preview Lab → · Contrast checker → · Palette generator →

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