#8B22AF#8B22AF

#8B22AF is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.8% C 0.213 H 315.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8B22AF
RGBrgb(139, 34, 175)
HSLhsl(285, 67%, 41%)
HSVhsv(285, 81%, 69%)
CMYKcmyk(20.6%, 80.6%, 0%, 31.4%)
CIE-LABlab(37.35, 62.17, -52.94)
CIE-LCHlch(37.35, 81.65, 319.58°)
OKLaboklab(48.79% 0.1512 -0.1495)
OKLCHoklch(48.79% 0.213 315.3)
XYZxyz(18.9561, 9.7289, 41.4285)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22AF #46AF22
analogous
#4422AF #8B22AF #AF228C
triadic
#8B22AF #AF8B22 #22AF8B
tetradic
#8B22AF #AF4422 #46AF22 #228CAF
square
#8B22AF #AF4422 #46AF22 #228CAF
split-complementary
#8B22AF #8CAF22 #22AF44
monochromatic
#3A0E49 #62187C #8B22AF #AF36D8 #C369E2

Accessibility & contrast

On white

7.13
#8B22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8B22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22AF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22AF#FFFFFF#000000##FFFFFF
##8B22AF1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#1B5AAC
Tritanopia (blue-blind)
#884469
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b22af;
/* rgb */ color: rgb(139, 34, 175);
/* oklch */ color: oklch(48.8% 0.213 315.3);
Tailwind
colors: {
  custom: {
    50: '#b16bc8',
    500: '#8b22af',
    950: '#000000',
  },
}
SCSS
$custom: #8b22af;
$custom-light: #b16bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22af",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 284.681,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.21264,
    "h": 315.3
  },
  "luminance": 0.09728
}

Semantic roles & 50–950 ramp

primary
#8B22AF
secondary
#7EC865
accent
#EA3D6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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