#8A5FE0#8A5FE0

#8A5FE0 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.4% C 0.188 H 295.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE0
RGBrgb(138, 95, 224)
HSLhsl(260, 68%, 63%)
HSVhsv(260, 58%, 88%)
CMYKcmyk(38.4%, 57.6%, 0%, 12.2%)
CIE-LABlab(50.65, 45.50, -59.88)
CIE-LCHlch(50.65, 75.21, 307.23°)
OKLaboklab(59.38% 0.081 -0.1702)
OKLCHoklch(59.38% 0.188 295.5)
XYZxyz(28.0245, 18.9690, 72.6914)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE0 #B5E05F
analogous
#5F75E0 #8A5FE0 #CA5FE0
triadic
#8A5FE0 #E08A5F #5FE08A
tetradic
#8A5FE0 #E05F75 #B5E05F #5FE0CA
square
#8A5FE0 #E05F75 #B5E05F #5FE0CA
split-complementary
#8A5FE0 #E0CA5F #75E05F
monochromatic
#4C20A5 #652CD6 #8A5FE0 #AF92EA #D5C6F4

Accessibility & contrast

On white

4.38
#8A5FE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A5FE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE0
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE0#FFFFFF#000000##000000
##8A5FE01.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#137AE4
Deuteranopia (green-blind)
#2977DD
Tritanopia (blue-blind)
#757B96
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe0;
/* rgb */ color: rgb(138, 95, 224);
/* oklch */ color: oklch(59.4% 0.188 295.5);
Tailwind
colors: {
  custom: {
    50: '#b18eea',
    500: '#8a5fe0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe0;
$custom-light: #b18eea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe0",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 224
  },
  "hsl": {
    "h": 260,
    "s": 67.539,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59377,
    "c": 0.18849,
    "h": 295.5
  },
  "luminance": 0.1897
}

Semantic roles & 50–950 ramp

primary
#8A5FE0
secondary
#D5E5B6
accent
#CF1692
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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