#8F22B2#8F22B2

#8F22B2 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.6% C 0.217 H 316.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8F22B2
RGBrgb(143, 34, 178)
HSLhsl(285, 68%, 42%)
HSVhsv(285, 81%, 70%)
CMYKcmyk(19.7%, 80.9%, 0%, 30.2%)
CIE-LABlab(38.20, 63.46, -53.32)
CIE-LCHlch(38.20, 82.89, 319.96°)
OKLaboklab(49.58% 0.1557 -0.1505)
OKLCHoklch(49.58% 0.217 316)
XYZxyz(19.9343, 10.1989, 43.0294)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F22B2 #45B222
analogous
#4722B2 #8F22B2 #B2228D
triadic
#8F22B2 #B28F22 #22B28F
tetradic
#8F22B2 #B24722 #45B222 #228DB2
square
#8F22B2 #B24722 #45B222 #228DB2
split-complementary
#8F22B2 #8DB222 #22B247
monochromatic
#3C0E4B #66187F #8F22B2 #B238D9 #C66CE3

Accessibility & contrast

On white

6.91
#8F22B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8F22B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F22B2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F22B2#FFFFFF#000000##FFFFFF
##8F22B21.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#8C456B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f22b2;
/* rgb */ color: rgb(143, 34, 178);
/* oklch */ color: oklch(49.6% 0.217 316.0);
Tailwind
colors: {
  custom: {
    50: '#b46cca',
    500: '#8f22b2',
    950: '#000000',
  },
}
SCSS
$custom: #8f22b2;
$custom-light: #b46cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f22b2",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 285.417,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.21653,
    "h": 316
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#8F22B2
secondary
#7FC967
accent
#EB3D67
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8F22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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