#8A5FFC#8A5FFC

#8A5FFC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.222 H 291.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A5FFC
RGBrgb(138, 95, 252)
HSLhsl(256, 96%, 68%)
HSVhsv(256, 62%, 99%)
CMYKcmyk(45.2%, 62.3%, 0%, 1.2%)
CIE-LABlab(52.53, 52.97, -72.53)
CIE-LCHlch(52.53, 89.82, 306.14°)
OKLaboklab(61.34% 0.0797 -0.2074)
OKLCHoklch(61.34% 0.222 291)
XYZxyz(32.1392, 20.6148, 94.3623)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FFC #D1FC5F
analogous
#5F82FC #8A5FFC #D85FFC
triadic
#8A5FFC #FC8A5F #5FFC8A
tetradic
#8A5FFC #FC5F82 #D1FC5F #5FFCD8
square
#8A5FFC #FC5F82 #D1FC5F #5FFCD8
split-complementary
#8A5FFC #FCD85F #82FC5F
monochromatic
#3F04DC #5E23FB #8A5FFC #B69BFD #E2D7FE

Accessibility & contrast

On white

4.10
#8A5FFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8A5FFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FFC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FFC#FFFFFF#000000##000000
##8A5FFC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5ffc;
/* rgb */ color: rgb(138, 95, 252);
/* oklch */ color: oklch(61.3% 0.222 291.0);
Tailwind
colors: {
  custom: {
    50: '#b48efe',
    500: '#8a5ffc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ffc;
$custom-light: #b48efe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ffc",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 252
  },
  "hsl": {
    "h": 256.433,
    "s": 96.319,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6134,
    "c": 0.22218,
    "h": 291
  },
  "luminance": 0.20616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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