#8A35B1#8A35B1

#8A35B1 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.5% C 0.194 H 313.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A35B1
RGBrgb(138, 53, 177)
HSLhsl(281, 54%, 45%)
HSVhsv(281, 70%, 69%)
CMYKcmyk(22%, 70.1%, 0%, 30.6%)
CIE-LABlab(39.79, 55.37, -50.20)
CIE-LCHlch(39.79, 74.74, 317.81°)
OKLaboklab(50.53% 0.1322 -0.1416)
OKLCHoklch(50.53% 0.194 313)
XYZxyz(19.6887, 11.1244, 42.6965)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35B1 #5CB135
analogous
#4C35B1 #8A35B1 #B1359A
triadic
#8A35B1 #B18A35 #35B18A
tetradic
#8A35B1 #B14C35 #5CB135 #359AB1
square
#8A35B1 #B14C35 #5CB135 #359AB1
split-complementary
#8A35B1 #9AB135 #35B14C
monochromatic
#411953 #652782 #8A35B1 #A757CD #C086DB

Accessibility & contrast

On white

6.51
#8A35B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A35B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35B1
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35B1#FFFFFF#000000##FFFFFF
##8A35B11.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#2B60AE
Tritanopia (blue-blind)
#864F6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a35b1;
/* rgb */ color: rgb(138, 53, 177);
/* oklch */ color: oklch(50.5% 0.194 313.0);
Tailwind
colors: {
  custom: {
    50: '#b073c9',
    500: '#8a35b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a35b1;
$custom-light: #b073c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35b1",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 281.129,
    "s": 53.913,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50532,
    "c": 0.19371,
    "h": 313
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

primary
#8A35B1
secondary
#94C47D
accent
#DD4B79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A35B1

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

Preview Lab → · Contrast checker → · Palette generator →

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