#8B22B4#8B22B4

#8B22B4 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.2% C 0.217 H 313.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8B22B4
RGBrgb(139, 34, 180)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 71%)
CMYKcmyk(22.8%, 81.1%, 0%, 29.4%)
CIE-LABlab(37.71, 63.15, -55.32)
CIE-LCHlch(37.71, 83.95, 318.78°)
OKLaboklab(49.16% 0.1502 -0.1565)
OKLCHoklch(49.16% 0.217 313.8)
XYZxyz(19.4563, 9.9290, 44.0628)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22B4 #4BB422
analogous
#4222B4 #8B22B4 #B42294
triadic
#8B22B4 #B48B22 #22B48B
tetradic
#8B22B4 #B44222 #4BB422 #2294B4
square
#8B22B4 #B44222 #4BB422 #2294B4
split-complementary
#8B22B4 #94B422 #22B442
monochromatic
#3B0F4D #631881 #8B22B4 #AD3ADA #C26DE3

Accessibility & contrast

On white

7.03
#8B22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B22B4
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22B4#FFFFFF#000000##FFFFFF
##8B22B41.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0E5BB1
Tritanopia (blue-blind)
#87466C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b22b4;
/* rgb */ color: rgb(139, 34, 180);
/* oklch */ color: oklch(49.2% 0.217 313.8);
Tailwind
colors: {
  custom: {
    50: '#b26bcb',
    500: '#8b22b4',
    950: '#000000',
  },
}
SCSS
$custom: #8b22b4;
$custom-light: #b26bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22b4",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 283.151,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49161,
    "c": 0.21692,
    "h": 313.8
  },
  "luminance": 0.09928
}

Semantic roles & 50–950 ramp

primary
#8B22B4
secondary
#84CA68
accent
#EB3D6E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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