#8A5FC2#8A5FC2

#8A5FC2 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.5% C 0.151 H 301.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5FC2
RGBrgb(138, 95, 194)
HSLhsl(266, 45%, 57%)
HSVhsv(266, 51%, 76%)
CMYKcmyk(28.9%, 51%, 0%, 23.9%)
CIE-LABlab(48.86, 37.80, -45.62)
CIE-LCHlch(48.86, 59.24, 309.65°)
OKLaboklab(57.48% 0.0799 -0.1284)
OKLCHoklch(57.48% 0.151 301.9)
XYZxyz(24.3088, 17.4827, 53.1223)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC2 #97C25F
analogous
#5F66C2 #8A5FC2 #BC5FC2
triadic
#8A5FC2 #C28A5F #5FC28A
tetradic
#8A5FC2 #C25F66 #97C25F #5FC2BC
square
#8A5FC2 #C25F66 #97C25F #5FC2BC
split-complementary
#8A5FC2 #C2BC5F #66C25F
monochromatic
#4E2E79 #6B3FA5 #8A5FC2 #AA8BD3 #CBB8E4

Accessibility & contrast

On white

4.67
#8A5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A5FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC2#FFFFFF#000000##FFFFFF
##8A5FC21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E73C5
Deuteranopia (green-blind)
#4A74C0
Tritanopia (blue-blind)
#7F7188
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fc2;
/* rgb */ color: rgb(138, 95, 194);
/* oklch */ color: oklch(57.5% 0.151 301.9);
Tailwind
colors: {
  custom: {
    50: '#af8dd5',
    500: '#8a5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc2;
$custom-light: #af8dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 266.061,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57482,
    "c": 0.15121,
    "h": 301.9
  },
  "luminance": 0.17483
}

Semantic roles & 50–950 ramp

primary
#8A5FC2
secondary
#C1D3AA
accent
#D4539C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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