#8A5FF6#8A5FF6

#8A5FF6 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.9% C 0.215 H 291.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF6
RGBrgb(138, 95, 246)
HSLhsl(257, 89%, 67%)
HSVhsv(257, 61%, 96%)
CMYKcmyk(43.9%, 61.4%, 0%, 3.5%)
CIE-LABlab(52.11, 51.36, -69.87)
CIE-LCHlch(52.11, 86.72, 306.31°)
OKLaboklab(60.91% 0.0801 -0.1996)
OKLCHoklch(60.91% 0.215 291.9)
XYZxyz(31.2034, 20.2405, 89.4337)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF6 #CBF65F
analogous
#5F80F6 #8A5FF6 #D65FF6
triadic
#8A5FF6 #F68A5F #5FF68A
tetradic
#8A5FF6 #F65F80 #CBF65F #5FF6D6
square
#8A5FF6 #F65F80 #CBF65F #5FF6D6
split-complementary
#8A5FF6 #F6D65F #80F65F
monochromatic
#430CCF #6025F3 #8A5FF6 #B499F9 #DFD3FD

Accessibility & contrast

On white

4.16
#8A5FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A5FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF6#FFFFFF#000000##000000
##8A5FF61.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFB
Deuteranopia (green-blind)
#0079F3
Tritanopia (blue-blind)
#6A82A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5ff6;
/* rgb */ color: rgb(138, 95, 246);
/* oklch */ color: oklch(60.9% 0.215 291.9);
Tailwind
colors: {
  custom: {
    50: '#b38efa',
    500: '#8a5ff6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff6;
$custom-light: #b38efa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff6",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 246
  },
  "hsl": {
    "h": 257.086,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60905,
    "c": 0.21505,
    "h": 291.9
  },
  "luminance": 0.20242
}

Semantic roles & 50–950 ramp

primary
#8A5FF6
secondary
#E3F1C0
accent
#E600A4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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