#8A5FE3#8A5FE3

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

Color values

HEX#8A5FE3
RGBrgb(138, 95, 227)
HSLhsl(260, 70%, 63%)
HSVhsv(260, 58%, 89%)
CMYKcmyk(39.2%, 58.1%, 0%, 11%)
CIE-LABlab(50.84, 46.29, -61.27)
CIE-LCHlch(50.84, 76.79, 307.07°)
OKLaboklab(59.58% 0.081 -0.1743)
OKLCHoklch(59.58% 0.192 294.9)
XYZxyz(28.4349, 19.1331, 74.8531)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE3 #B8E35F
analogous
#5F76E3 #8A5FE3 #CC5FE3
triadic
#8A5FE3 #E38A5F #5FE38A
tetradic
#8A5FE3 #E35F76 #B8E35F #5FE3CC
square
#8A5FE3 #E35F76 #B8E35F #5FE3CC
split-complementary
#8A5FE3 #E3CC5F #76E35F
monochromatic
#4B1EAA #642BDA #8A5FE3 #B093EC #D6C7F5

Accessibility & contrast

On white

4.35
#8A5FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8A5FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE3#FFFFFF#000000##000000
##8A5FE31.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#067AE7
Deuteranopia (green-blind)
#2377E0
Tritanopia (blue-blind)
#737C98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe3;
/* rgb */ color: rgb(138, 95, 227);
/* oklch */ color: oklch(59.6% 0.192 294.9);
Tailwind
colors: {
  custom: {
    50: '#b18eed',
    500: '#8a5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe3;
$custom-light: #b18eed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe3",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 259.545,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59579,
    "c": 0.19216,
    "h": 294.9
  },
  "luminance": 0.19134
}

Semantic roles & 50–950 ramp

primary
#8A5FE3
secondary
#D7E7B7
accent
#D21394
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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