#8A5FC3#8A5FC3

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

Color values

HEX#8A5FC3
RGBrgb(138, 95, 195)
HSLhsl(266, 45%, 57%)
HSVhsv(266, 51%, 76%)
CMYKcmyk(29.2%, 51.3%, 0%, 23.5%)
CIE-LABlab(48.92, 38.05, -46.10)
CIE-LCHlch(48.92, 59.78, 309.53°)
OKLaboklab(57.54% 0.08 -0.1298)
OKLCHoklch(57.54% 0.152 301.7)
XYZxyz(24.4215, 17.5278, 53.7158)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC3 #98C35F
analogous
#5F66C3 #8A5FC3 #BC5FC3
triadic
#8A5FC3 #C38A5F #5FC38A
tetradic
#8A5FC3 #C35F66 #98C35F #5FC3BC
square
#8A5FC3 #C35F66 #98C35F #5FC3BC
split-complementary
#8A5FC3 #C3BC5F #66C35F
monochromatic
#4E2E7A #6B3EA6 #8A5FC3 #AB8CD4 #CBB8E4

Accessibility & contrast

On white

4.66
#8A5FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A5FC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC3#FFFFFF#000000##FFFFFF
##8A5FC31.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D74C6
Deuteranopia (green-blind)
#4974C1
Tritanopia (blue-blind)
#7F7288
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fc3;
/* rgb */ color: rgb(138, 95, 195);
/* oklch */ color: oklch(57.5% 0.152 301.7);
Tailwind
colors: {
  custom: {
    50: '#af8dd6',
    500: '#8a5fc3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc3;
$custom-light: #af8dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc3",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 265.8,
    "s": 45.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57541,
    "c": 0.15247,
    "h": 301.7
  },
  "luminance": 0.17528
}

Semantic roles & 50–950 ramp

primary
#8A5FC3
secondary
#C2D3AB
accent
#D5539D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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