#8A5FE2#8A5FE2

#8A5FE2 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.5% C 0.191 H 295.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE2
RGBrgb(138, 95, 226)
HSLhsl(260, 69%, 63%)
HSVhsv(260, 58%, 89%)
CMYKcmyk(38.9%, 58%, 0%, 11.4%)
CIE-LABlab(50.78, 46.03, -60.81)
CIE-LCHlch(50.78, 76.26, 307.12°)
OKLaboklab(59.51% 0.081 -0.1729)
OKLCHoklch(59.51% 0.191 295.1)
XYZxyz(28.2973, 19.0781, 74.1283)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE2 #B7E25F
analogous
#5F75E2 #8A5FE2 #CC5FE2
triadic
#8A5FE2 #E28A5F #5FE28A
tetradic
#8A5FE2 #E25F75 #B7E25F #5FE2CC
square
#8A5FE2 #E25F75 #B7E25F #5FE2CC
split-complementary
#8A5FE2 #E2CC5F #75E25F
monochromatic
#4C1EA8 #642BD9 #8A5FE2 #B093EB #D6C7F5

Accessibility & contrast

On white

4.36
#8A5FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8A5FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE2#FFFFFF#000000##000000
##8A5FE21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7AE6
Deuteranopia (green-blind)
#2577DF
Tritanopia (blue-blind)
#747B97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe2;
/* rgb */ color: rgb(138, 95, 226);
/* oklch */ color: oklch(59.5% 0.191 295.1);
Tailwind
colors: {
  custom: {
    50: '#b18eec',
    500: '#8a5fe2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe2;
$custom-light: #b18eec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 259.695,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59512,
    "c": 0.19094,
    "h": 295.1
  },
  "luminance": 0.19079
}

Semantic roles & 50–950 ramp

primary
#8A5FE2
secondary
#D6E6B7
accent
#D11493
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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