#8A5FE4#8A5FE4

#8A5FE4 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.6% C 0.193 H 294.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE4
RGBrgb(138, 95, 228)
HSLhsl(259, 71%, 63%)
HSVhsv(259, 58%, 89%)
CMYKcmyk(39.5%, 58.3%, 0%, 10.6%)
CIE-LABlab(50.91, 46.56, -61.73)
CIE-LCHlch(50.91, 77.32, 307.02°)
OKLaboklab(59.65% 0.0809 -0.1756)
OKLCHoklch(59.65% 0.193 294.7)
XYZxyz(28.5733, 19.1885, 75.5821)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE4 #B9E45F
analogous
#5F76E4 #8A5FE4 #CC5FE4
triadic
#8A5FE4 #E48A5F #5FE48A
tetradic
#8A5FE4 #E45F76 #B9E45F #5FE4CC
square
#8A5FE4 #E45F76 #B9E45F #5FE4CC
split-complementary
#8A5FE4 #E4CC5F #76E45F
monochromatic
#4B1DAC #642BDB #8A5FE4 #B093ED #D7C8F6

Accessibility & contrast

On white

4.34
#8A5FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8A5FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE4#FFFFFF#000000##000000
##8A5FE41.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#017AE8
Deuteranopia (green-blind)
#2177E1
Tritanopia (blue-blind)
#737C98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe4;
/* rgb */ color: rgb(138, 95, 228);
/* oklch */ color: oklch(59.6% 0.193 294.7);
Tailwind
colors: {
  custom: {
    50: '#b18eed',
    500: '#8a5fe4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe4;
$custom-light: #b18eed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe4",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 228
  },
  "hsl": {
    "h": 259.398,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59647,
    "c": 0.19338,
    "h": 294.7
  },
  "luminance": 0.19189
}

Semantic roles & 50–950 ramp

primary
#8A5FE4
secondary
#D8E7B8
accent
#D31295
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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