#8A5FEA#8A5FEA

#8A5FEA is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.201 H 293.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A5FEA
RGBrgb(138, 95, 234)
HSLhsl(259, 77%, 65%)
HSVhsv(259, 59%, 92%)
CMYKcmyk(41%, 59.4%, 0%, 8.2%)
CIE-LABlab(51.30, 48.15, -64.47)
CIE-LCHlch(51.30, 80.47, 306.75°)
OKLaboklab(60.06% 0.0808 -0.1837)
OKLCHoklch(60.06% 0.201 293.7)
XYZxyz(29.4207, 19.5275, 80.0450)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FEA #BFEA5F
analogous
#5F7AEA #8A5FEA #D05FEA
triadic
#8A5FEA #EA8A5F #5FEA8A
tetradic
#8A5FEA #EA5F7A #BFEA5F #5FEAD0
square
#8A5FEA #EA5F7A #BFEA5F #5FEAD0
split-complementary
#8A5FEA #EAD05F #7AEA5F
monochromatic
#4918B7 #6229E3 #8A5FEA #B295F1 #D9CBF8

Accessibility & contrast

On white

4.28
#8A5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8A5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FEA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FEA#FFFFFF#000000##000000
##8A5FEA1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#0E78E7
Tritanopia (blue-blind)
#707E9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5fea;
/* rgb */ color: rgb(138, 95, 234);
/* oklch */ color: oklch(60.1% 0.201 293.7);
Tailwind
colors: {
  custom: {
    50: '#b28ef2',
    500: '#8a5fea',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fea;
$custom-light: #b28ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fea",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 258.561,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60058,
    "c": 0.20066,
    "h": 293.7
  },
  "luminance": 0.19528
}

Semantic roles & 50–950 ramp

primary
#8A5FEA
secondary
#DCEABA
accent
#D90C9A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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