#8F31B7#8F31B7

#8F31B7 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.2% C 0.206 H 313.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8F31B7
RGBrgb(143, 49, 183)
HSLhsl(282, 58%, 45%)
HSVhsv(282, 73%, 72%)
CMYKcmyk(21.9%, 73.2%, 0%, 28.2%)
CIE-LABlab(40.34, 59.30, -52.82)
CIE-LCHlch(40.34, 79.42, 318.31°)
OKLaboklab(51.2% 0.142 -0.1491)
OKLCHoklch(51.2% 0.206 313.6)
XYZxyz(20.9718, 11.4558, 45.8970)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B7 #59B731
analogous
#4C31B7 #8F31B7 #B7319C
triadic
#8F31B7 #B78F31 #31B78F
tetradic
#8F31B7 #B74C31 #59B731 #319CB7
square
#8F31B7 #B74C31 #59B731 #319CB7
split-complementary
#8F31B7 #9CB731 #31B74C
monochromatic
#441756 #692487 #8F31B7 #AC54D1 #C384DE

Accessibility & contrast

On white

6.38
#8F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8F31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B7#FFFFFF#000000##FFFFFF
##8F31B71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#2661B4
Tritanopia (blue-blind)
#8B4E71
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f31b7;
/* rgb */ color: rgb(143, 49, 183);
/* oklch */ color: oklch(51.2% 0.206 313.6);
Tailwind
colors: {
  custom: {
    50: '#b472cd',
    500: '#8f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b7;
$custom-light: #b472cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b7",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 282.09,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.512,
    "c": 0.20589,
    "h": 313.6
  },
  "luminance": 0.11455
}

Semantic roles & 50–950 ramp

primary
#8F31B7
secondary
#93C87C
accent
#E14775
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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