#8F22B4#8F22B4

#8F22B4 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.218 H 315.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8F22B4
RGBrgb(143, 34, 180)
HSLhsl(285, 68%, 42%)
HSVhsv(285, 81%, 71%)
CMYKcmyk(20.6%, 81.1%, 0%, 29.4%)
CIE-LABlab(38.34, 63.85, -54.28)
CIE-LCHlch(38.34, 83.80, 319.63°)
OKLaboklab(49.72% 0.1553 -0.1533)
OKLCHoklch(49.72% 0.218 315.4)
XYZxyz(20.1366, 10.2798, 44.0946)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F22B4 #47B422
analogous
#4622B4 #8F22B4 #B42290
triadic
#8F22B4 #B48F22 #22B48F
tetradic
#8F22B4 #B44622 #47B422 #2290B4
square
#8F22B4 #B44622 #47B422 #2290B4
split-complementary
#8F22B4 #90B422 #22B446
monochromatic
#3D0F4D #661881 #8F22B4 #B13ADA #C56DE3

Accessibility & contrast

On white

6.87
#8F22B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8F22B4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F22B4#FFFFFF#000000##FFFFFF
##8F22B41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#1A5DB1
Tritanopia (blue-blind)
#8C466C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f22b4;
/* rgb */ color: rgb(143, 34, 180);
/* oklch */ color: oklch(49.7% 0.218 315.4);
Tailwind
colors: {
  custom: {
    50: '#b46ccb',
    500: '#8f22b4',
    950: '#000000',
  },
}
SCSS
$custom: #8f22b4;
$custom-light: #b46ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f22b4",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 284.795,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49724,
    "c": 0.21821,
    "h": 315.4
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#8F22B4
secondary
#81CA68
accent
#EB3D69
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8F22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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