#8B27B2#8B27B2

#8B27B2 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.211 H 314.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8B27B2
RGBrgb(139, 39, 178)
HSLhsl(283, 64%, 43%)
HSVhsv(283, 78%, 70%)
CMYKcmyk(21.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(38.12, 61.16, -53.48)
CIE-LCHlch(38.12, 81.24, 318.83°)
OKLaboklab(49.4% 0.1467 -0.1511)
OKLCHoklch(49.4% 0.211 314.1)
XYZxyz(19.4075, 10.1550, 43.0486)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27B2 #4EB227
analogous
#4527B2 #8B27B2 #B22794
triadic
#8B27B2 #B28B27 #27B28B
tetradic
#8B27B2 #B24527 #4EB227 #2794B2
square
#8B27B2 #B24527 #4EB227 #2794B2
split-complementary
#8B27B2 #94B227 #27B245
monochromatic
#3D114E #641C80 #8B27B2 #AC41D5 #C273E0

Accessibility & contrast

On white

6.93
#8B27B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8B27B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B27B2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27B2#FFFFFF#000000##FFFFFF
##8B27B21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#1B5CAF
Tritanopia (blue-blind)
#87486C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b27b2;
/* rgb */ color: rgb(139, 39, 178);
/* oklch */ color: oklch(49.4% 0.211 314.1);
Tailwind
colors: {
  custom: {
    50: '#b16dca',
    500: '#8b27b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b27b2;
$custom-light: #b16dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27b2",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 283.165,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.494,
    "c": 0.21059,
    "h": 314.1
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#8B27B2
secondary
#87C86D
accent
#E7416F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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