#8A5FD1#8A5FD1

#8A5FD1 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.4% C 0.170 H 298.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD1
RGBrgb(138, 95, 209)
HSLhsl(263, 55%, 60%)
HSVhsv(263, 55%, 82%)
CMYKcmyk(34%, 54.5%, 0%, 18%)
CIE-LABlab(49.73, 41.60, -52.85)
CIE-LCHlch(49.73, 67.25, 308.21°)
OKLaboklab(58.4% 0.0808 -0.1495)
OKLCHoklch(58.4% 0.17 298.4)
XYZxyz(26.0792, 18.1909, 62.4464)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD1 #A6D15F
analogous
#5F6DD1 #8A5FD1 #C35FD1
triadic
#8A5FD1 #D18A5F #5FD18A
tetradic
#8A5FD1 #D15F6D #A6D15F #5FD1C3
square
#8A5FD1 #D15F6D #A6D15F #5FD1C3
split-complementary
#8A5FD1 #D1C35F #6DD15F
monochromatic
#4E298D #6936BD #8A5FD1 #AD8FDF #D0BEEC

Accessibility & contrast

On white

4.53
#8A5FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#8A5FD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD1#FFFFFF#000000##000000
##8A5FD11.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F76D5
Deuteranopia (green-blind)
#3D75CE
Tritanopia (blue-blind)
#7A768F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5fd1;
/* rgb */ color: rgb(138, 95, 209);
/* oklch */ color: oklch(58.4% 0.170 298.4);
Tailwind
colors: {
  custom: {
    50: '#b08ee0',
    500: '#8a5fd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd1;
$custom-light: #b08ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd1",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 209
  },
  "hsl": {
    "h": 262.632,
    "s": 55.34,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58401,
    "c": 0.16998,
    "h": 298.4
  },
  "luminance": 0.18191
}

Semantic roles & 50–950 ramp

primary
#8A5FD1
secondary
#CBDCB0
accent
#DF49A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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