#8B22B5#8B22B5

#8B22B5 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.218 H 313.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8B22B5
RGBrgb(139, 34, 181)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 71%)
CMYKcmyk(23.2%, 81.2%, 0%, 29%)
CIE-LABlab(37.79, 63.34, -55.80)
CIE-LCHlch(37.79, 84.41, 318.63°)
OKLaboklab(49.24% 0.15 -0.1579)
OKLCHoklch(49.24% 0.218 313.5)
XYZxyz(19.5585, 9.9699, 44.6012)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22B5 #4CB522
analogous
#4122B5 #8B22B5 #B52296
triadic
#8B22B5 #B58B22 #22B58B
tetradic
#8B22B5 #B54122 #4CB522 #2296B5
square
#8B22B5 #B54122 #4CB522 #2296B5
split-complementary
#8B22B5 #96B522 #22B541
monochromatic
#3C0F4E #631881 #8B22B5 #AC3ADA #C26EE4

Accessibility & contrast

On white

7.01
#8B22B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8B22B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22B5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22B5#FFFFFF#000000##FFFFFF
##8B22B51.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0B5BB2
Tritanopia (blue-blind)
#86476D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b22b5;
/* rgb */ color: rgb(139, 34, 181);
/* oklch */ color: oklch(49.2% 0.218 313.5);
Tailwind
colors: {
  custom: {
    50: '#b26bcc',
    500: '#8b22b5',
    950: '#000000',
  },
}
SCSS
$custom: #8b22b5;
$custom-light: #b26bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22b5",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 282.857,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.21778,
    "h": 313.5
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#8B22B5
secondary
#85CA69
accent
#EB3D6E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8B22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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