#8F2FA8#8F2FA8

#8F2FA8 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.194 H 318.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8F2FA8
RGBrgb(143, 47, 168)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 66%)
CMYKcmyk(14.9%, 72%, 0%, 34.1%)
CIE-LABlab(39.07, 57.07, -45.96)
CIE-LCHlch(39.07, 73.27, 321.15°)
OKLaboklab(49.98% 0.1456 -0.129)
OKLCHoklch(49.98% 0.194 318.5)
XYZxyz(19.4111, 10.7007, 38.0812)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2FA8 #48A82F
analogous
#522FA8 #8F2FA8 #A82F85
triadic
#8F2FA8 #A88F2F #2FA88F
tetradic
#8F2FA8 #A8522F #48A82F #2F85A8
square
#8F2FA8 #A8522F #48A82F #2F85A8
split-complementary
#8F2FA8 #85A82F #2FA852
monochromatic
#3E1448 #662278 #8F2FA8 #B148CC #C578D9

Accessibility & contrast

On white

6.69
#8F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8F2FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2FA8
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2FA8#FFFFFF#000000##FFFFFF
##8F2FA81.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#355FA5
Tritanopia (blue-blind)
#8F4769
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2fa8;
/* rgb */ color: rgb(143, 47, 168);
/* oklch */ color: oklch(50.0% 0.194 318.5);
Tailwind
colors: {
  custom: {
    50: '#b371c2',
    500: '#8f2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8f2fa8;
$custom-light: #b371c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2fa8",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 287.603,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49984,
    "c": 0.19449,
    "h": 318.5
  },
  "luminance": 0.107
}

Semantic roles & 50–950 ramp

primary
#8F2FA8
secondary
#82C171
accent
#E04868
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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