#8A5FC7#8A5FC7

#8A5FC7 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.8% C 0.157 H 300.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A5FC7
RGBrgb(138, 95, 199)
HSLhsl(265, 48%, 58%)
HSVhsv(265, 52%, 78%)
CMYKcmyk(30.7%, 52.3%, 0%, 22%)
CIE-LABlab(49.14, 39.05, -48.05)
CIE-LCHlch(49.14, 61.92, 309.10°)
OKLaboklab(57.78% 0.0803 -0.1355)
OKLCHoklch(57.78% 0.157 300.7)
XYZxyz(24.8798, 17.7111, 56.1296)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC7 #9CC75F
analogous
#5F68C7 #8A5FC7 #BE5FC7
triadic
#8A5FC7 #C78A5F #5FC78A
tetradic
#8A5FC7 #C75F68 #9CC75F #5FC7BE
square
#8A5FC7 #C75F68 #9CC75F #5FC7BE
split-complementary
#8A5FC7 #C7BE5F #68C75F
monochromatic
#4F2C7F #6B3CAC #8A5FC7 #AB8CD7 #CCBAE7

Accessibility & contrast

On white

4.62
#8A5FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A5FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC7#FFFFFF#000000##FFFFFF
##8A5FC71.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A74CB
Deuteranopia (green-blind)
#4674C5
Tritanopia (blue-blind)
#7E738A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5fc7;
/* rgb */ color: rgb(138, 95, 199);
/* oklch */ color: oklch(57.8% 0.157 300.7);
Tailwind
colors: {
  custom: {
    50: '#af8dd8',
    500: '#8a5fc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc7;
$custom-light: #af8dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc7",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 264.808,
    "s": 48.148,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57782,
    "c": 0.15749,
    "h": 300.7
  },
  "luminance": 0.17711
}

Semantic roles & 50–950 ramp

primary
#8A5FC7
secondary
#C5D6AC
accent
#D850A0
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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