#8A5FE8#8A5FE8

#8A5FE8 is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.9% C 0.198 H 294.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE8
RGBrgb(138, 95, 232)
HSLhsl(259, 75%, 64%)
HSVhsv(259, 59%, 91%)
CMYKcmyk(40.5%, 59.1%, 0%, 9%)
CIE-LABlab(51.17, 47.61, -63.56)
CIE-LCHlch(51.17, 79.42, 306.84°)
OKLaboklab(59.92% 0.0808 -0.181)
OKLCHoklch(59.92% 0.198 294.1)
XYZxyz(29.1350, 19.4132, 78.5404)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE8 #BDE85F
analogous
#5F79E8 #8A5FE8 #CE5FE8
triadic
#8A5FE8 #E88A5F #5FE88A
tetradic
#8A5FE8 #E85F79 #BDE85F #5FE8CE
square
#8A5FE8 #E85F79 #BDE85F #5FE8CE
split-complementary
#8A5FE8 #E8CE5F #79E85F
monochromatic
#4A1AB3 #6329E0 #8A5FE8 #B195F0 #D8CAF7

Accessibility & contrast

On white

4.30
#8A5FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A5FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE8#FFFFFF#000000##000000
##8A5FE81.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEC
Deuteranopia (green-blind)
#1678E5
Tritanopia (blue-blind)
#717D9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5fe8;
/* rgb */ color: rgb(138, 95, 232);
/* oklch */ color: oklch(59.9% 0.198 294.1);
Tailwind
colors: {
  custom: {
    50: '#b28ef0',
    500: '#8a5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe8;
$custom-light: #b28ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe8",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 258.832,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5992,
    "c": 0.19824,
    "h": 294.1
  },
  "luminance": 0.19414
}

Semantic roles & 50–950 ramp

primary
#8A5FE8
secondary
#DAE9BA
accent
#D70E98
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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