#8A5FC1#8A5FC1

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

Color values

HEX#8A5FC1
RGBrgb(138, 95, 193)
HSLhsl(266, 44%, 56%)
HSVhsv(266, 51%, 76%)
CMYKcmyk(28.5%, 50.8%, 0%, 24.3%)
CIE-LABlab(48.81, 37.55, -45.13)
CIE-LCHlch(48.81, 58.71, 309.76°)
OKLaboklab(57.42% 0.0798 -0.1269)
OKLCHoklch(57.42% 0.15 302.2)
XYZxyz(24.1969, 17.4379, 52.5328)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC1 #96C15F
analogous
#5F65C1 #8A5FC1 #BB5FC1
triadic
#8A5FC1 #C18A5F #5FC18A
tetradic
#8A5FC1 #C15F65 #96C15F #5FC1BB
square
#8A5FC1 #C15F65 #96C15F #5FC1BB
split-complementary
#8A5FC1 #C1BB5F #65C15F
monochromatic
#4E2E77 #6B3FA3 #8A5FC1 #AA8BD2 #CBB7E3

Accessibility & contrast

On white

4.68
#8A5FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8A5FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC1
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC1#FFFFFF#000000##FFFFFF
##8A5FC11.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F73C4
Deuteranopia (green-blind)
#4B74BF
Tritanopia (blue-blind)
#807187
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fc1;
/* rgb */ color: rgb(138, 95, 193);
/* oklch */ color: oklch(57.4% 0.150 302.2);
Tailwind
colors: {
  custom: {
    50: '#af8dd4',
    500: '#8a5fc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc1;
$custom-light: #af8dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc1",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 193
  },
  "hsl": {
    "h": 266.327,
    "s": 44.144,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57423,
    "c": 0.14995,
    "h": 302.2
  },
  "luminance": 0.17438
}

Semantic roles & 50–950 ramp

primary
#8A5FC1
secondary
#C0D2AA
accent
#D4549C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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