#8A5FE9#8A5FE9

#8A5FE9 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.0% C 0.199 H 293.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE9
RGBrgb(138, 95, 233)
HSLhsl(259, 76%, 64%)
HSVhsv(259, 59%, 91%)
CMYKcmyk(40.8%, 59.2%, 0%, 8.6%)
CIE-LABlab(51.23, 47.88, -64.02)
CIE-LCHlch(51.23, 79.94, 306.79°)
OKLaboklab(59.99% 0.0808 -0.1824)
OKLCHoklch(59.99% 0.199 293.9)
XYZxyz(29.2775, 19.4702, 79.2906)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE9 #BEE95F
analogous
#5F79E9 #8A5FE9 #CF5FE9
triadic
#8A5FE9 #E98A5F #5FE98A
tetradic
#8A5FE9 #E95F79 #BEE95F #5FE9CF
square
#8A5FE9 #E95F79 #BEE95F #5FE9CF
split-complementary
#8A5FE9 #E9CF5F #79E95F
monochromatic
#4919B5 #6329E2 #8A5FE9 #B195F0 #D9CBF8

Accessibility & contrast

On white

4.29
#8A5FE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A5FE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE9#FFFFFF#000000##000000
##8A5FE91.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#1278E6
Tritanopia (blue-blind)
#717E9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5fe9;
/* rgb */ color: rgb(138, 95, 233);
/* oklch */ color: oklch(60.0% 0.199 293.9);
Tailwind
colors: {
  custom: {
    50: '#b28ef1',
    500: '#8a5fe9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe9;
$custom-light: #b28ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe9",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 233
  },
  "hsl": {
    "h": 258.696,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59989,
    "c": 0.19945,
    "h": 293.9
  },
  "luminance": 0.19471
}

Semantic roles & 50–950 ramp

primary
#8A5FE9
secondary
#DBEABA
accent
#D80D99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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