#8A5FD3#8A5FD3

#8A5FD3 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.5% C 0.172 H 298.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD3
RGBrgb(138, 95, 211)
HSLhsl(262, 57%, 60%)
HSVhsv(262, 55%, 83%)
CMYKcmyk(34.6%, 55%, 0%, 17.3%)
CIE-LABlab(49.85, 42.11, -53.79)
CIE-LCHlch(49.85, 68.32, 308.06°)
OKLaboklab(58.53% 0.0809 -0.1523)
OKLCHoklch(58.53% 0.172 298)
XYZxyz(26.3284, 18.2905, 63.7587)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD3 #A8D35F
analogous
#5F6ED3 #8A5FD3 #C45FD3
triadic
#8A5FD3 #D38A5F #5FD38A
tetradic
#8A5FD3 #D35F6E #A8D35F #5FD3C4
square
#8A5FD3 #D35F6E #A8D35F #5FD3C4
split-complementary
#8A5FD3 #D3C45F #6ED35F
monochromatic
#4E2890 #6835C0 #8A5FD3 #AD8FE0 #D0BFED

Accessibility & contrast

On white

4.51
#8A5FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#8A5FD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD3#FFFFFF#000000##000000
##8A5FD31.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#3B75D0
Tritanopia (blue-blind)
#7A7690
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5fd3;
/* rgb */ color: rgb(138, 95, 211);
/* oklch */ color: oklch(58.5% 0.172 298.0);
Tailwind
colors: {
  custom: {
    50: '#b08ee1',
    500: '#8a5fd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd3;
$custom-light: #b08ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd3",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 211
  },
  "hsl": {
    "h": 262.241,
    "s": 56.863,
    "l": 60
  },
  "oklch": {
    "l": 0.58528,
    "c": 0.17247,
    "h": 298
  },
  "luminance": 0.18291
}

Semantic roles & 50–950 ramp

primary
#8A5FD3
secondary
#CDDDB1
accent
#E048A8
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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