#8A35B2#8A35B2

#8A35B2 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.195 H 312.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A35B2
RGBrgb(138, 53, 178)
HSLhsl(281, 54%, 45%)
HSVhsv(281, 70%, 70%)
CMYKcmyk(22.5%, 70.2%, 0%, 30.2%)
CIE-LABlab(39.86, 55.59, -50.68)
CIE-LCHlch(39.86, 75.22, 317.64°)
OKLaboklab(50.6% 0.1321 -0.143)
OKLCHoklch(50.6% 0.195 312.7)
XYZxyz(19.7888, 11.1644, 43.2234)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35B2 #5DB235
analogous
#4B35B2 #8A35B2 #B2359B
triadic
#8A35B2 #B28A35 #35B28A
tetradic
#8A35B2 #B24B35 #5DB235 #359BB2
square
#8A35B2 #B24B35 #5DB235 #359BB2
split-complementary
#8A35B2 #9BB235 #35B24B
monochromatic
#411954 #652783 #8A35B2 #A757CD #C086DB

Accessibility & contrast

On white

6.50
#8A35B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A35B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35B2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35B2#FFFFFF#000000##FFFFFF
##8A35B21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2960AF
Tritanopia (blue-blind)
#864F70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a35b2;
/* rgb */ color: rgb(138, 53, 178);
/* oklch */ color: oklch(50.6% 0.195 312.7);
Tailwind
colors: {
  custom: {
    50: '#b073ca',
    500: '#8a35b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a35b2;
$custom-light: #b073ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35b2",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 280.8,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50601,
    "c": 0.19468,
    "h": 312.7
  },
  "luminance": 0.11164
}

Semantic roles & 50–950 ramp

primary
#8A35B2
secondary
#95C57E
accent
#DD4A79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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