#8F22B5#8F22B5

#8F22B5 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.219 H 315.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8F22B5
RGBrgb(143, 34, 181)
HSLhsl(284, 68%, 42%)
HSVhsv(284, 81%, 71%)
CMYKcmyk(21%, 81.2%, 0%, 29%)
CIE-LABlab(38.41, 64.04, -54.76)
CIE-LCHlch(38.41, 84.26, 319.47°)
OKLaboklab(49.8% 0.1551 -0.1547)
OKLCHoklch(49.8% 0.219 315.1)
XYZxyz(20.2388, 10.3207, 44.6331)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F22B5 #48B522
analogous
#4622B5 #8F22B5 #B52291
triadic
#8F22B5 #B58F22 #22B58F
tetradic
#8F22B5 #B54622 #48B522 #2291B5
square
#8F22B5 #B54622 #48B522 #2291B5
split-complementary
#8F22B5 #91B522 #22B546
monochromatic
#3E0F4E #661881 #8F22B5 #B13ADA #C56EE4

Accessibility & contrast

On white

6.85
#8F22B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8F22B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F22B5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F22B5#FFFFFF#000000##FFFFFF
##8F22B51.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#8C466D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f22b5;
/* rgb */ color: rgb(143, 34, 181);
/* oklch */ color: oklch(49.8% 0.219 315.1);
Tailwind
colors: {
  custom: {
    50: '#b56ccc',
    500: '#8f22b5',
    950: '#000000',
  },
}
SCSS
$custom: #8f22b5;
$custom-light: #b56ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f22b5",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 284.49,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49797,
    "c": 0.21905,
    "h": 315.1
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#8F22B5
secondary
#82CA69
accent
#EB3D6A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8F22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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