#8A5FCD#8A5FCD

#8A5FCD is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.1% C 0.165 H 299.3°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5FCD
RGBrgb(138, 95, 205)
HSLhsl(263, 52%, 59%)
HSVhsv(263, 54%, 80%)
CMYKcmyk(32.7%, 53.7%, 0%, 19.6%)
CIE-LABlab(49.49, 40.57, -50.94)
CIE-LCHlch(49.49, 65.12, 308.54°)
OKLaboklab(58.15% 0.0807 -0.1439)
OKLCHoklch(58.15% 0.165 299.3)
XYZxyz(25.5902, 17.9952, 59.8710)
Luminance0.1799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FCD #A2CD5F
analogous
#5F6BCD #8A5FCD #C15FCD
triadic
#8A5FCD #CD8A5F #5FCD8A
tetradic
#8A5FCD #CD5F6B #A2CD5F #5FCDC1
square
#8A5FCD #CD5F6B #A2CD5F #5FCDC1
split-complementary
#8A5FCD #CDC15F #6BCD5F
monochromatic
#4F2A87 #6A39B6 #8A5FCD #AC8EDC #CEBCEA

Accessibility & contrast

On white

4.57
#8A5FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8A5FCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FCD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FCD#FFFFFF#000000##000000
##8A5FCD1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3476D1
Deuteranopia (green-blind)
#4175CA
Tritanopia (blue-blind)
#7C758D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5fcd;
/* rgb */ color: rgb(138, 95, 205);
/* oklch */ color: oklch(58.1% 0.165 299.3);
Tailwind
colors: {
  custom: {
    50: '#b08edd',
    500: '#8a5fcd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fcd;
$custom-light: #b08edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fcd",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 263.455,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.165,
    "h": 299.3
  },
  "luminance": 0.17995
}

Semantic roles & 50–950 ramp

primary
#8A5FCD
secondary
#C9DAAE
accent
#DC4CA4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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