#8A5FCC#8A5FCC

#8A5FCC is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.1% C 0.164 H 299.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5FCC
RGBrgb(138, 95, 204)
HSLhsl(264, 52%, 59%)
HSVhsv(264, 53%, 80%)
CMYKcmyk(32.4%, 53.4%, 0%, 20%)
CIE-LABlab(49.43, 40.32, -50.46)
CIE-LCHlch(49.43, 64.59, 308.63°)
OKLaboklab(58.09% 0.0806 -0.1425)
OKLCHoklch(58.09% 0.164 299.5)
XYZxyz(25.4699, 17.9471, 59.2373)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FCC #A1CC5F
analogous
#5F6ACC #8A5FCC #C15FCC
triadic
#8A5FCC #CC8A5F #5FCC8A
tetradic
#8A5FCC #CC5F6A #A1CC5F #5FCCC1
square
#8A5FCC #CC5F6A #A1CC5F #5FCCC1
split-complementary
#8A5FCC #CCC15F #6ACC5F
monochromatic
#4F2B86 #6A39B4 #8A5FCC #AC8DDB #CEBCEA

Accessibility & contrast

On white

4.58
#8A5FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#8A5FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FCC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FCC#FFFFFF#000000##000000
##8A5FCC1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3575D0
Deuteranopia (green-blind)
#4275C9
Tritanopia (blue-blind)
#7C748C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5fcc;
/* rgb */ color: rgb(138, 95, 204);
/* oklch */ color: oklch(58.1% 0.164 299.5);
Tailwind
colors: {
  custom: {
    50: '#af8edc',
    500: '#8a5fcc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fcc;
$custom-light: #af8edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fcc",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 263.67,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58088,
    "c": 0.16375,
    "h": 299.5
  },
  "luminance": 0.17947
}

Semantic roles & 50–950 ramp

primary
#8A5FCC
secondary
#C8D9AE
accent
#DB4DA3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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