#8A35A0#8A35A0

#8A35A0 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.4% C 0.177 H 318.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A35A0
RGBrgb(138, 53, 160)
HSLhsl(288, 50%, 42%)
HSVhsv(288, 67%, 63%)
CMYKcmyk(13.8%, 66.9%, 0%, 37.3%)
CIE-LABlab(38.70, 51.86, -41.79)
CIE-LCHlch(38.70, 66.60, 321.13°)
OKLaboklab(49.41% 0.1333 -0.117)
OKLCHoklch(49.41% 0.177 318.7)
XYZxyz(18.0987, 10.4883, 34.3220)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35A0 #4BA035
analogous
#5535A0 #8A35A0 #A03581
triadic
#8A35A0 #A08A35 #35A08A
tetradic
#8A35A0 #A05535 #4BA035 #3581A0
square
#8A35A0 #A05535 #4BA035 #3581A0
split-complementary
#8A35A0 #81A035 #35A055
monochromatic
#3B1744 #622672 #8A35A0 #AC4EC4 #C27CD4

Accessibility & contrast

On white

6.78
#8A35A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A35A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35A0
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35A0#FFFFFF#000000##FFFFFF
##8A35A01.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D56A3
Deuteranopia (green-blind)
#3B5E9D
Tritanopia (blue-blind)
#8A4866
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a35a0;
/* rgb */ color: rgb(138, 53, 160);
/* oklch */ color: oklch(49.4% 0.177 318.7);
Tailwind
colors: {
  custom: {
    50: '#af73bd',
    500: '#8a35a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a35a0;
$custom-light: #af73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35a0",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 160
  },
  "hsl": {
    "h": 287.664,
    "s": 50.235,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49408,
    "c": 0.17733,
    "h": 318.7
  },
  "luminance": 0.10488
}

Semantic roles & 50–950 ramp

primary
#8A35A0
secondary
#83BC74
accent
#DA4E6B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A35A0

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

Preview Lab → · Contrast checker → · Palette generator →

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