#8A5FD5#8A5FD5

#8A5FD5 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.7% C 0.175 H 297.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD5
RGBrgb(138, 95, 213)
HSLhsl(262, 58%, 60%)
HSVhsv(262, 55%, 84%)
CMYKcmyk(35.2%, 55.4%, 0%, 16.5%)
CIE-LABlab(49.97, 42.63, -54.74)
CIE-LCHlch(49.97, 69.38, 307.91°)
OKLaboklab(58.66% 0.0809 -0.1551)
OKLCHoklch(58.66% 0.175 297.6)
XYZxyz(26.5807, 18.3914, 65.0874)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD5 #AAD55F
analogous
#5F6FD5 #8A5FD5 #C55FD5
triadic
#8A5FD5 #D58A5F #5FD58A
tetradic
#8A5FD5 #D55F6F #AAD55F #5FD5C5
square
#8A5FD5 #D55F6F #AAD55F #5FD5C5
split-complementary
#8A5FD5 #D5C55F #6FD55F
monochromatic
#4E2793 #6833C3 #8A5FD5 #AD8FE2 #D1C0EE

Accessibility & contrast

On white

4.49
#8A5FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#8A5FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD5#FFFFFF#000000##000000
##8A5FD51.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A77D9
Deuteranopia (green-blind)
#3876D2
Tritanopia (blue-blind)
#797791
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5fd5;
/* rgb */ color: rgb(138, 95, 213);
/* oklch */ color: oklch(58.7% 0.175 297.6);
Tailwind
colors: {
  custom: {
    50: '#b08ee2',
    500: '#8a5fd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd5;
$custom-light: #b08ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd5",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 213
  },
  "hsl": {
    "h": 261.864,
    "s": 58.416,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58656,
    "c": 0.17495,
    "h": 297.6
  },
  "luminance": 0.18392
}

Semantic roles & 50–950 ramp

primary
#8A5FD5
secondary
#CEDEB1
accent
#C61F89
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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