#8A35E2#8A35E2

#8A35E2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.2% C 0.242 H 300.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A35E2
RGBrgb(138, 53, 226)
HSLhsl(269, 75%, 55%)
HSVhsv(269, 77%, 89%)
CMYKcmyk(38.9%, 76.5%, 0%, 11.4%)
CIE-LABlab(43.42, 66.27, -72.75)
CIE-LCHlch(43.42, 98.41, 312.33°)
OKLaboklab(54.23% 0.123 -0.2079)
OKLCHoklch(54.23% 0.242 300.6)
XYZxyz(25.4784, 13.4402, 73.1887)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35E2 #8DE235
analogous
#3536E2 #8A35E2 #E135E2
triadic
#8A35E2 #E28A35 #35E28A
tetradic
#8A35E2 #E23536 #8DE235 #35E2E1
square
#8A35E2 #E23536 #8DE235 #35E2E1
split-complementary
#8A35E2 #E2E135 #36E235
monochromatic
#4D1489 #6B1BBE #8A35E2 #A96BEA #C8A0F1

Accessibility & contrast

On white

5.69
#8A35E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A35E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35E2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35E2#FFFFFF#000000##FFFFFF
##8A35E21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#76638B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a35e2;
/* rgb */ color: rgb(138, 53, 226);
/* oklch */ color: oklch(54.2% 0.242 300.6);
Tailwind
colors: {
  custom: {
    50: '#b476ec',
    500: '#8a35e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a35e2;
$custom-light: #b476ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35e2",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 226
  },
  "hsl": {
    "h": 269.48,
    "s": 74.892,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54234,
    "c": 0.24155,
    "h": 300.6
  },
  "luminance": 0.1344
}

Semantic roles & 50–950 ramp

primary
#8A35E2
secondary
#BADE95
accent
#F23696
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A35E2

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

Preview Lab → · Contrast checker → · Palette generator →

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