#8A5FC0#8A5FC0

#8A5FC0 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.4% C 0.149 H 302.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8A5FC0
RGBrgb(138, 95, 192)
HSLhsl(267, 43%, 56%)
HSVhsv(267, 51%, 75%)
CMYKcmyk(28.1%, 50.5%, 0%, 24.7%)
CIE-LABlab(48.75, 37.30, -44.64)
CIE-LCHlch(48.75, 58.17, 309.88°)
OKLaboklab(57.36% 0.0797 -0.1255)
OKLCHoklch(57.36% 0.149 302.4)
XYZxyz(24.0857, 17.3935, 51.9473)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC0 #95C05F
analogous
#5F65C0 #8A5FC0 #BB5FC0
triadic
#8A5FC0 #C08A5F #5FC08A
tetradic
#8A5FC0 #C05F65 #95C05F #5FC0BB
square
#8A5FC0 #C05F65 #95C05F #5FC0BB
split-complementary
#8A5FC0 #C0BB5F #65C05F
monochromatic
#4E2F76 #6B40A2 #8A5FC0 #AA8BD1 #CAB7E3

Accessibility & contrast

On white

4.69
#8A5FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8A5FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC0
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC0#FFFFFF#000000##FFFFFF
##8A5FC01.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4073C3
Deuteranopia (green-blind)
#4C74BE
Tritanopia (blue-blind)
#807187
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fc0;
/* rgb */ color: rgb(138, 95, 192);
/* oklch */ color: oklch(57.4% 0.149 302.4);
Tailwind
colors: {
  custom: {
    50: '#af8dd3',
    500: '#8a5fc0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc0;
$custom-light: #af8dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc0",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 266.598,
    "s": 43.498,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57364,
    "c": 0.14869,
    "h": 302.4
  },
  "luminance": 0.17393
}

Semantic roles & 50–950 ramp

primary
#8A5FC0
secondary
#C0D1A9
accent
#D3559B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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