#8A5FDA#8A5FDA

#8A5FDA is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.181 H 296.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5FDA
RGBrgb(138, 95, 218)
HSLhsl(261, 62%, 61%)
HSVhsv(261, 56%, 85%)
CMYKcmyk(36.7%, 56.4%, 0%, 14.5%)
CIE-LABlab(50.27, 43.93, -57.09)
CIE-LCHlch(50.27, 72.04, 307.58°)
OKLaboklab(58.98% 0.081 -0.162)
OKLCHoklch(58.98% 0.181 296.6)
XYZxyz(27.2251, 18.6492, 68.4814)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FDA #AFDA5F
analogous
#5F72DA #8A5FDA #C85FDA
triadic
#8A5FDA #DA8A5F #5FDA8A
tetradic
#8A5FDA #DA5F72 #AFDA5F #5FDAC8
square
#8A5FDA #DA5F72 #AFDA5F #5FDAC8
split-complementary
#8A5FDA #DAC85F #72DA5F
monochromatic
#4D249B #662FCD #8A5FDA #AE91E5 #D3C2F1

Accessibility & contrast

On white

4.44
#8A5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A5FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FDA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FDA#FFFFFF#000000##000000
##8A5FDA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DE
Deuteranopia (green-blind)
#3276D7
Tritanopia (blue-blind)
#777993
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5fda;
/* rgb */ color: rgb(138, 95, 218);
/* oklch */ color: oklch(59.0% 0.181 296.6);
Tailwind
colors: {
  custom: {
    50: '#b18ee6',
    500: '#8a5fda',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fda;
$custom-light: #b18ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fda",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 260.976,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5898,
    "c": 0.18113,
    "h": 296.6
  },
  "luminance": 0.1865
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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