#8A5FF9#8A5FF9

#8A5FF9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.1% C 0.219 H 291.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF9
RGBrgb(138, 95, 249)
HSLhsl(257, 93%, 67%)
HSVhsv(257, 62%, 98%)
CMYKcmyk(44.6%, 61.8%, 0%, 2.4%)
CIE-LABlab(52.32, 52.16, -71.21)
CIE-LCHlch(52.32, 88.27, 306.22°)
OKLaboklab(61.12% 0.0799 -0.2035)
OKLCHoklch(61.12% 0.219 291.4)
XYZxyz(31.6676, 20.4262, 91.8783)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF9 #CEF95F
analogous
#5F81F9 #8A5FF9 #D75FF9
triadic
#8A5FF9 #F98A5F #5FF98A
tetradic
#8A5FF9 #F95F81 #CEF95F #5FF9D7
square
#8A5FF9 #F95F81 #CEF95F #5FF9D7
split-complementary
#8A5FF9 #F9D75F #81F95F
monochromatic
#4108D6 #5F24F7 #8A5FF9 #B59AFB #E0D5FD

Accessibility & contrast

On white

4.13
#8A5FF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A5FF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF9#FFFFFF#000000##000000
##8A5FF91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFE
Deuteranopia (green-blind)
#007AF6
Tritanopia (blue-blind)
#6983A3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5ff9;
/* rgb */ color: rgb(138, 95, 249);
/* oklch */ color: oklch(61.1% 0.219 291.4);
Tailwind
colors: {
  custom: {
    50: '#b38efc',
    500: '#8a5ff9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff9;
$custom-light: #b38efc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff9",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 249
  },
  "hsl": {
    "h": 256.753,
    "s": 92.771,
    "l": 67.451
  },
  "oklch": {
    "l": 0.61121,
    "c": 0.21862,
    "h": 291.4
  },
  "luminance": 0.20427
}

Semantic roles & 50–950 ramp

primary
#8A5FF9
secondary
#E5F2C2
accent
#E600A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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