#8A5FD0#8A5FD0

#8A5FD0 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.3% C 0.169 H 298.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD0
RGBrgb(138, 95, 208)
HSLhsl(263, 55%, 59%)
HSVhsv(263, 54%, 82%)
CMYKcmyk(33.7%, 54.3%, 0%, 18.4%)
CIE-LABlab(49.67, 41.34, -52.37)
CIE-LCHlch(49.67, 66.72, 308.29°)
OKLaboklab(58.34% 0.0808 -0.1481)
OKLCHoklch(58.34% 0.169 298.6)
XYZxyz(25.9558, 18.1415, 61.7965)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD0 #A5D05F
analogous
#5F6DD0 #8A5FD0 #C35FD0
triadic
#8A5FD0 #D08A5F #5FD08A
tetradic
#8A5FD0 #D05F6D #A5D05F #5FD0C3
square
#8A5FD0 #D05F6D #A5D05F #5FD0C3
split-complementary
#8A5FD0 #D0C35F #6DD05F
monochromatic
#4F298C #6937BB #8A5FD0 #AD8EDE #CFBEEC

Accessibility & contrast

On white

4.54
#8A5FD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8A5FD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD0
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD0#FFFFFF#000000##000000
##8A5FD01.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3076D4
Deuteranopia (green-blind)
#3E75CD
Tritanopia (blue-blind)
#7B768E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5fd0;
/* rgb */ color: rgb(138, 95, 208);
/* oklch */ color: oklch(58.3% 0.169 298.6);
Tailwind
colors: {
  custom: {
    50: '#b08edf',
    500: '#8a5fd0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd0;
$custom-light: #b08edf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd0",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 208
  },
  "hsl": {
    "h": 262.832,
    "s": 54.589,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58338,
    "c": 0.16874,
    "h": 298.6
  },
  "luminance": 0.18142
}

Semantic roles & 50–950 ramp

primary
#8A5FD0
secondary
#CBDBAF
accent
#DE4AA6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD0

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

Preview Lab → · Contrast checker → · Palette generator →

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