#8A35A2#8A35A2

#8A35A2 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.5% C 0.179 H 318.0°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8A35A2
RGBrgb(138, 53, 162)
HSLhsl(287, 51%, 42%)
HSVhsv(287, 67%, 64%)
CMYKcmyk(14.8%, 67.3%, 0%, 36.5%)
CIE-LABlab(38.83, 52.26, -42.80)
CIE-LCHlch(38.83, 67.55, 320.68°)
OKLaboklab(49.54% 0.1332 -0.1199)
OKLCHoklch(49.54% 0.179 318)
XYZxyz(18.2750, 10.5589, 35.2508)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35A2 #4DA235
analogous
#5435A2 #8A35A2 #A23584
triadic
#8A35A2 #A28A35 #35A28A
tetradic
#8A35A2 #A25435 #4DA235 #3584A2
square
#8A35A2 #A25435 #4DA235 #3584A2
split-complementary
#8A35A2 #84A235 #35A254
monochromatic
#3B1746 #632674 #8A35A2 #AB4FC5 #C17DD4

Accessibility & contrast

On white

6.75
#8A35A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A35A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35A2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35A2#FFFFFF#000000##FFFFFF
##8A35A21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0756A5
Deuteranopia (green-blind)
#3A5E9F
Tritanopia (blue-blind)
#894967
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a35a2;
/* rgb */ color: rgb(138, 53, 162);
/* oklch */ color: oklch(49.5% 0.179 318.0);
Tailwind
colors: {
  custom: {
    50: '#af73be',
    500: '#8a35a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a35a2;
$custom-light: #af73be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35a2",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 286.789,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49535,
    "c": 0.17924,
    "h": 318
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#8A35A2
secondary
#85BD75
accent
#DA4E6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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