#8B35B2#8B35B2

#8B35B2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.195 H 313.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8B35B2
RGBrgb(139, 53, 178)
HSLhsl(281, 54%, 45%)
HSVhsv(281, 70%, 70%)
CMYKcmyk(21.9%, 70.2%, 0%, 30.2%)
CIE-LABlab(40.00, 55.80, -50.45)
CIE-LCHlch(40.00, 75.22, 317.88°)
OKLaboklab(50.73% 0.1334 -0.1423)
OKLCHoklch(50.73% 0.195 313.1)
XYZxyz(19.9550, 11.2501, 43.2312)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B35B2 #5CB235
analogous
#4C35B2 #8B35B2 #B2359A
triadic
#8B35B2 #B28B35 #35B28B
tetradic
#8B35B2 #B24C35 #5CB235 #359AB2
square
#8B35B2 #B24C35 #5CB235 #359AB2
split-complementary
#8B35B2 #9AB235 #35B24C
monochromatic
#411954 #662783 #8B35B2 #A857CD #C186DB

Accessibility & contrast

On white

6.46
#8B35B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8B35B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B35B2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B35B2#FFFFFF#000000##FFFFFF
##8B35B21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#874F70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b35b2;
/* rgb */ color: rgb(139, 53, 178);
/* oklch */ color: oklch(50.7% 0.195 313.1);
Tailwind
colors: {
  custom: {
    50: '#b174ca',
    500: '#8b35b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b35b2;
$custom-light: #b174ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b35b2",
  "rgb": {
    "r": 139,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 281.28,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50732,
    "c": 0.19503,
    "h": 313.1
  },
  "luminance": 0.1125
}

Semantic roles & 50–950 ramp

primary
#8B35B2
secondary
#94C57E
accent
#DD4A78
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8B35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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