#8A35A6#8A35A6

#8A35A6 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.183 H 316.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A35A6
RGBrgb(138, 53, 166)
HSLhsl(285, 52%, 43%)
HSVhsv(285, 68%, 65%)
CMYKcmyk(16.9%, 68.1%, 0%, 34.9%)
CIE-LABlab(39.08, 53.08, -44.80)
CIE-LCHlch(39.08, 69.46, 319.83°)
OKLaboklab(49.79% 0.133 -0.1258)
OKLCHoklch(49.79% 0.183 316.6)
XYZxyz(18.6362, 10.7034, 37.1533)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35A6 #51A635
analogous
#5235A6 #8A35A6 #A63589
triadic
#8A35A6 #A68A35 #35A68A
tetradic
#8A35A6 #A65235 #51A635 #3589A6
square
#8A35A6 #A65235 #51A635 #3589A6
split-complementary
#8A35A6 #89A635 #35A652
monochromatic
#3D1749 #632678 #8A35A6 #AA51C7 #C17FD6

Accessibility & contrast

On white

6.69
#8A35A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A35A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35A6
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35A6#FFFFFF#000000##FFFFFF
##8A35A61.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#365FA3
Tritanopia (blue-blind)
#894B69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a35a6;
/* rgb */ color: rgb(138, 53, 166);
/* oklch */ color: oklch(49.8% 0.183 316.6);
Tailwind
colors: {
  custom: {
    50: '#b073c1',
    500: '#8a35a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a35a6;
$custom-light: #b073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35a6",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 285.133,
    "s": 51.598,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49794,
    "c": 0.18307,
    "h": 316.6
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

primary
#8A35A6
secondary
#89BF77
accent
#DB4D70
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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