#8F38B7#8F38B7

#8F38B7 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.9% C 0.198 H 313.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8F38B7
RGBrgb(143, 56, 183)
HSLhsl(281, 53%, 47%)
HSVhsv(281, 69%, 72%)
CMYKcmyk(21.9%, 69.4%, 0%, 28.2%)
CIE-LABlab(41.35, 56.43, -51.19)
CIE-LCHlch(41.35, 76.18, 317.79°)
OKLaboklab(51.92% 0.1348 -0.1444)
OKLCHoklch(51.92% 0.198 313)
XYZxyz(21.2876, 12.0875, 46.0023)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38B7 #60B738
analogous
#4F38B7 #8F38B7 #B738A0
triadic
#8F38B7 #B78F38 #38B78F
tetradic
#8F38B7 #B74F38 #60B738 #38A0B7
square
#8F38B7 #B74F38 #60B738 #38A0B7
split-complementary
#8F38B7 #A0B738 #38B74F
monochromatic
#461B59 #6A2A88 #8F38B7 #AB5ECE #C38DDC

Accessibility & contrast

On white

6.15
#8F38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8F38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38B7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38B7#FFFFFF#000000##FFFFFF
##8F38B71.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#2E63B4
Tritanopia (blue-blind)
#8B5273
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8f38b7;
/* rgb */ color: rgb(143, 56, 183);
/* oklch */ color: oklch(51.9% 0.198 313.0);
Tailwind
colors: {
  custom: {
    50: '#b476cd',
    500: '#8f38b7',
    950: '#000000',
  },
}
SCSS
$custom: #8f38b7;
$custom-light: #b476cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38b7",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 281.102,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51924,
    "c": 0.19752,
    "h": 313
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#8F38B7
secondary
#99C784
accent
#DD4B79
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8F38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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