#8A5FD9#8A5FD9

#8A5FD9 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.9% C 0.180 H 296.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD9
RGBrgb(138, 95, 217)
HSLhsl(261, 62%, 61%)
HSVhsv(261, 56%, 85%)
CMYKcmyk(36.4%, 56.2%, 0%, 14.9%)
CIE-LABlab(50.21, 43.67, -56.62)
CIE-LCHlch(50.21, 71.51, 307.64°)
OKLaboklab(58.91% 0.081 -0.1606)
OKLCHoklch(58.91% 0.18 296.8)
XYZxyz(27.0946, 18.5970, 67.7943)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD9 #AED95F
analogous
#5F71D9 #8A5FD9 #C75FD9
triadic
#8A5FD9 #D98A5F #5FD98A
tetradic
#8A5FD9 #D95F71 #AED95F #5FD9C7
square
#8A5FD9 #D95F71 #AED95F #5FD9C7
split-complementary
#8A5FD9 #D9C75F #71D95F
monochromatic
#4E2499 #6730CB #8A5FD9 #AE90E5 #D2C2F0

Accessibility & contrast

On white

4.45
#8A5FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8A5FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD9
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD9#FFFFFF#000000##000000
##8A5FD91.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2378DD
Deuteranopia (green-blind)
#3376D6
Tritanopia (blue-blind)
#787893
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5fd9;
/* rgb */ color: rgb(138, 95, 217);
/* oklch */ color: oklch(58.9% 0.180 296.8);
Tailwind
colors: {
  custom: {
    50: '#b08ee5',
    500: '#8a5fd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd9;
$custom-light: #b08ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd9",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 217
  },
  "hsl": {
    "h": 261.148,
    "s": 61.616,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58915,
    "c": 0.17989,
    "h": 296.8
  },
  "luminance": 0.18597
}

Semantic roles & 50–950 ramp

primary
#8A5FD9
secondary
#D1E1B3
accent
#C91C8C
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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