#8B27B3#8B27B3

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

Color values

HEX#8B27B3
RGBrgb(139, 39, 179)
HSLhsl(283, 64%, 43%)
HSVhsv(283, 78%, 70%)
CMYKcmyk(22.3%, 78.2%, 0%, 29.8%)
CIE-LABlab(38.19, 61.36, -53.96)
CIE-LCHlch(38.19, 81.71, 318.67°)
OKLaboklab(49.47% 0.1465 -0.1525)
OKLCHoklch(49.47% 0.211 313.8)
XYZxyz(19.5083, 10.1953, 43.5793)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27B3 #4FB327
analogous
#4527B3 #8B27B3 #B32795
triadic
#8B27B3 #B38B27 #27B38B
tetradic
#8B27B3 #B34527 #4FB327 #2795B3
square
#8B27B3 #B34527 #4FB327 #2795B3
split-complementary
#8B27B3 #95B327 #27B345
monochromatic
#3D114E #641C81 #8B27B3 #AB41D6 #C274E1

Accessibility & contrast

On white

6.91
#8B27B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8B27B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B27B3
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27B3#FFFFFF#000000##FFFFFF
##8B27B31.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#195CB0
Tritanopia (blue-blind)
#87486D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b27b3;
/* rgb */ color: rgb(139, 39, 179);
/* oklch */ color: oklch(49.5% 0.211 313.8);
Tailwind
colors: {
  custom: {
    50: '#b16dcb',
    500: '#8b27b3',
    950: '#000000',
  },
}
SCSS
$custom: #8b27b3;
$custom-light: #b16dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27b3",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 282.857,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49473,
    "c": 0.21148,
    "h": 313.8
  },
  "luminance": 0.10195
}

Semantic roles & 50–950 ramp

primary
#8B27B3
secondary
#88C86E
accent
#E74170
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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