#8F40B2#8F40B2

#8F40B2 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.5% C 0.182 H 313.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8F40B2
RGBrgb(143, 64, 178)
HSLhsl(282, 47%, 47%)
HSVhsv(282, 64%, 70%)
CMYKcmyk(19.7%, 64%, 0%, 30.2%)
CIE-LABlab(42.34, 51.74, -46.66)
CIE-LCHlch(42.34, 69.67, 317.96°)
OKLaboklab(52.53% 0.126 -0.1311)
OKLCHoklch(52.53% 0.182 313.9)
XYZxyz(21.1956, 12.7214, 43.4498)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40B2 #63B240
analogous
#5640B2 #8F40B2 #B2409C
triadic
#8F40B2 #B28F40 #40B28F
tetradic
#8F40B2 #B25640 #63B240 #409CB2
square
#8F40B2 #B25640 #63B240 #409CB2
split-complementary
#8F40B2 #9CB240 #40B256
monochromatic
#472058 #6B3085 #8F40B2 #AA67C8 #C394D8

Accessibility & contrast

On white

5.93
#8F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8F40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40B2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40B2#FFFFFF#000000##FFFFFF
##8F40B21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F60B5
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#8C5573
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8f40b2;
/* rgb */ color: rgb(143, 64, 178);
/* oklch */ color: oklch(52.5% 0.182 313.9);
Tailwind
colors: {
  custom: {
    50: '#b37aca',
    500: '#8f40b2',
    950: '#000000',
  },
}
SCSS
$custom: #8f40b2;
$custom-light: #b37aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40b2",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 281.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52531,
    "c": 0.18188,
    "h": 313.9
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#8F40B2
secondary
#9CC48A
accent
#D7517A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8F40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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