#8A5FE1#8A5FE1

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

Color values

HEX#8A5FE1
RGBrgb(138, 95, 225)
HSLhsl(260, 68%, 63%)
HSVhsv(260, 58%, 88%)
CMYKcmyk(38.7%, 57.8%, 0%, 11.8%)
CIE-LABlab(50.71, 45.76, -60.35)
CIE-LCHlch(50.71, 75.74, 307.18°)
OKLaboklab(59.44% 0.081 -0.1716)
OKLCHoklch(59.44% 0.19 295.3)
XYZxyz(28.1605, 19.0234, 73.4078)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE1 #B6E15F
analogous
#5F75E1 #8A5FE1 #CB5FE1
triadic
#8A5FE1 #E18A5F #5FE18A
tetradic
#8A5FE1 #E15F75 #B6E15F #5FE1CB
square
#8A5FE1 #E15F75 #B6E15F #5FE1CB
split-complementary
#8A5FE1 #E1CB5F #75E15F
monochromatic
#4C1FA6 #642BD7 #8A5FE1 #B093EB #D5C6F4

Accessibility & contrast

On white

4.37
#8A5FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8A5FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE1
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE1#FFFFFF#000000##000000
##8A5FE11.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7AE5
Deuteranopia (green-blind)
#2777DE
Tritanopia (blue-blind)
#747B97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe1;
/* rgb */ color: rgb(138, 95, 225);
/* oklch */ color: oklch(59.4% 0.190 295.3);
Tailwind
colors: {
  custom: {
    50: '#b18eeb',
    500: '#8a5fe1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe1;
$custom-light: #b18eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe1",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 225
  },
  "hsl": {
    "h": 259.846,
    "s": 68.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59444,
    "c": 0.18972,
    "h": 295.3
  },
  "luminance": 0.19024
}

Semantic roles & 50–950 ramp

primary
#8A5FE1
secondary
#D6E5B6
accent
#D01592
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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