#8A5FC8#8A5FC8

#8A5FC8 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.8% C 0.159 H 300.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5FC8
RGBrgb(138, 95, 200)
HSLhsl(265, 49%, 58%)
HSVhsv(265, 53%, 78%)
CMYKcmyk(31%, 52.5%, 0%, 21.6%)
CIE-LABlab(49.20, 39.31, -48.53)
CIE-LCHlch(49.20, 62.45, 309.00°)
OKLaboklab(57.84% 0.0804 -0.1369)
OKLCHoklch(57.84% 0.159 300.4)
XYZxyz(24.9963, 17.7577, 56.7431)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FC8 #9DC85F
analogous
#5F69C8 #8A5FC8 #BE5FC8
triadic
#8A5FC8 #C88A5F #5FC88A
tetradic
#8A5FC8 #C85F69 #9DC85F #5FC8BE
square
#8A5FC8 #C85F69 #9DC85F #5FC8BE
split-complementary
#8A5FC8 #C8BE5F #69C85F
monochromatic
#4F2C80 #6B3CAE #8A5FC8 #AB8DD8 #CDBAE7

Accessibility & contrast

On white

4.61
#8A5FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A5FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FC8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FC8#FFFFFF#000000##FFFFFF
##8A5FC81.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3975CC
Deuteranopia (green-blind)
#4574C5
Tritanopia (blue-blind)
#7E738A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5fc8;
/* rgb */ color: rgb(138, 95, 200);
/* oklch */ color: oklch(57.8% 0.159 300.4);
Tailwind
colors: {
  custom: {
    50: '#af8dd9',
    500: '#8a5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fc8;
$custom-light: #af8dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fc8",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 264.571,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57842,
    "c": 0.15874,
    "h": 300.4
  },
  "luminance": 0.17758
}

Semantic roles & 50–950 ramp

primary
#8A5FC8
secondary
#C5D6AC
accent
#D84FA0
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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