#8B22B2#8B22B2

#8B22B2 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 49.0% C 0.215 H 314.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8B22B2
RGBrgb(139, 34, 178)
HSLhsl(284, 68%, 42%)
HSVhsv(284, 81%, 70%)
CMYKcmyk(21.9%, 80.9%, 0%, 30.2%)
CIE-LABlab(37.57, 62.75, -54.37)
CIE-LCHlch(37.57, 83.03, 319.09°)
OKLaboklab(49.01% 0.1506 -0.1537)
OKLCHoklch(49.01% 0.215 314.4)
XYZxyz(19.2540, 9.8481, 42.9975)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22B2 #49B222
analogous
#4322B2 #8B22B2 #B22291
triadic
#8B22B2 #B28B22 #22B28B
tetradic
#8B22B2 #B24322 #49B222 #2291B2
square
#8B22B2 #B24322 #49B222 #2291B2
split-complementary
#8B22B2 #91B222 #22B243
monochromatic
#3B0E4B #63187F #8B22B2 #AD38D9 #C36CE3

Accessibility & contrast

On white

7.07
#8B22B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8B22B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22B2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22B2#FFFFFF#000000##FFFFFF
##8B22B21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#87456B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b22b2;
/* rgb */ color: rgb(139, 34, 178);
/* oklch */ color: oklch(49.0% 0.215 314.4);
Tailwind
colors: {
  custom: {
    50: '#b26bca',
    500: '#8b22b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b22b2;
$custom-light: #b26bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22b2",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 283.75,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.2152,
    "h": 314.4
  },
  "luminance": 0.09847
}

Semantic roles & 50–950 ramp

primary
#8B22B2
secondary
#81C967
accent
#EB3D6C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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