#8A4BCA#8A4BCA

#8A4BCA is a mid, vivid violet. Relative luminance 0.147; OKLCH L 55.0% C 0.191 H 303.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A4BCA
RGBrgb(138, 75, 202)
HSLhsl(270, 55%, 54%)
HSVhsv(270, 63%, 79%)
CMYKcmyk(31.7%, 62.9%, 0%, 20.8%)
CIE-LABlab(45.22, 50.63, -56.07)
CIE-LCHlch(45.22, 75.54, 312.08°)
OKLaboklab(54.97% 0.1053 -0.1589)
OKLCHoklch(54.97% 0.191 303.5)
XYZxyz(23.6556, 14.6997, 57.4568)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BCA #8BCA4B
analogous
#4B4CCA #8A4BCA #CA4BCA
triadic
#8A4BCA #CA8A4B #4BCA8A
tetradic
#8A4BCA #CA4B4C #8BCA4B #4BCACA
square
#8A4BCA #CA4B4C #8BCA4B #4BCACA
split-complementary
#8A4BCA #CACA4B #4CCA4B
monochromatic
#4D2377 #6B31A7 #8A4BCA #A97AD8 #C7AAE6

Accessibility & contrast

On white

5.33
#8A4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8A4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BCA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BCA#FFFFFF#000000##FFFFFF
##8A4BCA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#7E6684
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4bca;
/* rgb */ color: rgb(138, 75, 202);
/* oklch */ color: oklch(55.0% 0.191 303.5);
Tailwind
colors: {
  custom: {
    50: '#b081db',
    500: '#8a4bca',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bca;
$custom-light: #b081db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bca",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 269.764,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54965,
    "c": 0.19067,
    "h": 303.5
  },
  "luminance": 0.147
}

Semantic roles & 50–950 ramp

primary
#8A4BCA
secondary
#B9D39D
accent
#DE4A94
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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