#8A4BC5#8A4BC5

#8A4BC5 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.185 H 304.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A4BC5
RGBrgb(138, 75, 197)
HSLhsl(271, 51%, 53%)
HSVhsv(271, 62%, 77%)
CMYKcmyk(29.9%, 61.9%, 0%, 22.7%)
CIE-LABlab(44.90, 49.43, -53.70)
CIE-LCHlch(44.90, 72.98, 312.63°)
OKLaboklab(54.63% 0.1056 -0.152)
OKLCHoklch(54.63% 0.185 304.8)
XYZxyz(23.0731, 14.4668, 54.3893)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BC5 #86C54B
analogous
#4D4BC5 #8A4BC5 #C54BC3
triadic
#8A4BC5 #C58A4B #4BC58A
tetradic
#8A4BC5 #C54D4B #86C54B #4BC3C5
square
#8A4BC5 #C54D4B #86C54B #4BC3C5
split-complementary
#8A4BC5 #C3C54B #4BC54D
monochromatic
#4C2471 #6B339F #8A4BC5 #A879D4 #C6A8E3

Accessibility & contrast

On white

5.39
#8A4BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A4BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BC5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BC5#FFFFFF#000000##FFFFFF
##8A4BC51.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#2D6AC2
Tritanopia (blue-blind)
#7F6481
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4bc5;
/* rgb */ color: rgb(138, 75, 197);
/* oklch */ color: oklch(54.6% 0.185 304.8);
Tailwind
colors: {
  custom: {
    50: '#b081d7',
    500: '#8a4bc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bc5;
$custom-light: #b081d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bc5",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 270.984,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54625,
    "c": 0.18507,
    "h": 304.8
  },
  "luminance": 0.14467
}

Semantic roles & 50–950 ramp

primary
#8A4BC5
secondary
#B5D09C
accent
#DB4D92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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