#8F34B2#8F34B2

#8F34B2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.198 H 314.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8F34B2
RGBrgb(143, 52, 178)
HSLhsl(283, 55%, 45%)
HSVhsv(283, 71%, 70%)
CMYKcmyk(19.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(40.43, 57.07, -49.73)
CIE-LCHlch(40.43, 75.70, 318.93°)
OKLaboklab(51.16% 0.1395 -0.1401)
OKLCHoklch(51.16% 0.198 314.9)
XYZxyz(20.5903, 11.5107, 43.2480)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F34B2 #57B234
analogous
#5034B2 #8F34B2 #B23496
triadic
#8F34B2 #B28F34 #34B28F
tetradic
#8F34B2 #B25034 #57B234 #3496B2
square
#8F34B2 #B25034 #57B234 #3496B2
split-complementary
#8F34B2 #96B234 #34B250
monochromatic
#431853 #692683 #8F34B2 #AC56CE #C385DB

Accessibility & contrast

On white

6.36
#8F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8F34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F34B2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F34B2#FFFFFF#000000##FFFFFF
##8F34B21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2F62AF
Tritanopia (blue-blind)
#8C4E6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f34b2;
/* rgb */ color: rgb(143, 52, 178);
/* oklch */ color: oklch(51.2% 0.198 314.9);
Tailwind
colors: {
  custom: {
    50: '#b473ca',
    500: '#8f34b2',
    950: '#000000',
  },
}
SCSS
$custom: #8f34b2;
$custom-light: #b473ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f34b2",
  "rgb": {
    "r": 143,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 283.333,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.19769,
    "h": 314.9
  },
  "luminance": 0.1151
}

Semantic roles & 50–950 ramp

primary
#8F34B2
secondary
#91C57D
accent
#DE4A73
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8F34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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