#8A35B5#8A35B5

#8A35B5 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.8% C 0.198 H 311.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A35B5
RGBrgb(138, 53, 181)
HSLhsl(280, 55%, 46%)
HSVhsv(280, 71%, 71%)
CMYKcmyk(23.8%, 70.7%, 0%, 29%)
CIE-LABlab(40.06, 56.23, -52.13)
CIE-LCHlch(40.06, 76.68, 317.16°)
OKLaboklab(50.81% 0.1317 -0.1473)
OKLCHoklch(50.81% 0.198 311.8)
XYZxyz(20.0933, 11.2862, 44.8271)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35B5 #60B535
analogous
#4A35B5 #8A35B5 #B535A0
triadic
#8A35B5 #B58A35 #35B58A
tetradic
#8A35B5 #B54A35 #60B535 #35A0B5
square
#8A35B5 #B54A35 #60B535 #35A0B5
split-complementary
#8A35B5 #A0B535 #35B54A
monochromatic
#421956 #662786 #8A35B5 #A759CE #C088DC

Accessibility & contrast

On white

6.45
#8A35B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A35B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35B5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35B5#FFFFFF#000000##FFFFFF
##8A35B51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#2560B2
Tritanopia (blue-blind)
#855171
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a35b5;
/* rgb */ color: rgb(138, 53, 181);
/* oklch */ color: oklch(50.8% 0.198 311.8);
Tailwind
colors: {
  custom: {
    50: '#b074cc',
    500: '#8a35b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a35b5;
$custom-light: #b074cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35b5",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 279.844,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.1976,
    "h": 311.8
  },
  "luminance": 0.11286
}

Semantic roles & 50–950 ramp

primary
#8A35B5
secondary
#97C680
accent
#DE4A7C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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