#8A5FFD#8A5FFD

#8A5FFD is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.4% C 0.223 H 290.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A5FFD
RGBrgb(138, 95, 253)
HSLhsl(256, 98%, 68%)
HSVhsv(256, 62%, 99%)
CMYKcmyk(45.5%, 62.5%, 0%, 0.8%)
CIE-LABlab(52.60, 53.24, -72.98)
CIE-LCHlch(52.60, 90.33, 306.11°)
OKLaboklab(61.41% 0.0796 -0.2087)
OKLCHoklch(61.41% 0.223 290.9)
XYZxyz(32.2981, 20.6784, 95.1990)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FFD #D2FD5F
analogous
#5F83FD #8A5FFD #D95FFD
triadic
#8A5FFD #FD8A5F #5FFD8A
tetradic
#8A5FFD #FD5F83 #D2FD5F #5FFDD9
square
#8A5FFD #FD5F83 #D2FD5F #5FFDD9
split-complementary
#8A5FFD #FDD95F #83FD5F
monochromatic
#3F03DF #5E23FC #8A5FFD #B69BFE #E2D8FF

Accessibility & contrast

On white

4.09
#8A5FFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A5FFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FFD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FFD#FFFFFF#000000##000000
##8A5FFD1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AFA
Tritanopia (blue-blind)
#6784A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5ffd;
/* rgb */ color: rgb(138, 95, 253);
/* oklch */ color: oklch(61.4% 0.223 290.9);
Tailwind
colors: {
  custom: {
    50: '#b48eff',
    500: '#8a5ffd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ffd;
$custom-light: #b48eff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ffd",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 253
  },
  "hsl": {
    "h": 256.329,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61413,
    "c": 0.22335,
    "h": 290.9
  },
  "luminance": 0.2068
}

Semantic roles & 50–950 ramp

primary
#8A5FFD
secondary
#E7F4C4
accent
#E600A7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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