#8A5FDD#8A5FDD

#8A5FDD is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.2% C 0.185 H 296.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A5FDD
RGBrgb(138, 95, 221)
HSLhsl(260, 65%, 62%)
HSVhsv(260, 57%, 87%)
CMYKcmyk(37.6%, 57%, 0%, 13.3%)
CIE-LABlab(50.46, 44.71, -58.49)
CIE-LCHlch(50.46, 73.62, 307.40°)
OKLaboklab(59.18% 0.081 -0.1661)
OKLCHoklch(59.18% 0.185 296)
XYZxyz(27.6212, 18.8076, 70.5676)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FDD #B2DD5F
analogous
#5F73DD #8A5FDD #C95FDD
triadic
#8A5FDD #DD8A5F #5FDD8A
tetradic
#8A5FDD #DD5F73 #B2DD5F #5FDDC9
square
#8A5FDD #DD5F73 #B2DD5F #5FDDC9
split-complementary
#8A5FDD #DDC95F #73DD5F
monochromatic
#4D22A0 #652DD2 #8A5FDD #AF91E8 #D4C4F2

Accessibility & contrast

On white

4.41
#8A5FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8A5FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FDD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FDD#FFFFFF#000000##000000
##8A5FDD1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B79E1
Deuteranopia (green-blind)
#2E76DA
Tritanopia (blue-blind)
#767A95
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5fdd;
/* rgb */ color: rgb(138, 95, 221);
/* oklch */ color: oklch(59.2% 0.185 296.0);
Tailwind
colors: {
  custom: {
    50: '#b18ee8',
    500: '#8a5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fdd;
$custom-light: #b18ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fdd",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 260.476,
    "s": 64.948,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59178,
    "c": 0.18482,
    "h": 296
  },
  "luminance": 0.18808
}

Semantic roles & 50–950 ramp

primary
#8A5FDD
secondary
#D3E3B5
accent
#CD198F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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