#8A4BC2#8A4BC2

#8A4BC2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.182 H 305.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A4BC2
RGBrgb(138, 75, 194)
HSLhsl(272, 49%, 53%)
HSVhsv(272, 61%, 76%)
CMYKcmyk(28.9%, 61.3%, 0%, 23.9%)
CIE-LABlab(44.70, 48.71, -52.27)
CIE-LCHlch(44.70, 71.45, 312.99°)
OKLaboklab(54.43% 0.1057 -0.1478)
OKLCHoklch(54.43% 0.182 305.6)
XYZxyz(22.7328, 14.3306, 52.5970)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BC2 #83C24B
analogous
#4E4BC2 #8A4BC2 #C24BBE
triadic
#8A4BC2 #C28A4B #4BC28A
tetradic
#8A4BC2 #C24E4B #83C24B #4BBEC2
square
#8A4BC2 #C24E4B #83C24B #4BBEC2
split-complementary
#8A4BC2 #BEC24B #4BC24E
monochromatic
#4B256D #6B359B #8A4BC2 #A879D1 #C5A6E1

Accessibility & contrast

On white

5.43
#8A4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A4BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BC2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BC2#FFFFFF#000000##FFFFFF
##8A4BC21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0768C6
Deuteranopia (green-blind)
#316ABF
Tritanopia (blue-blind)
#80637F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4bc2;
/* rgb */ color: rgb(138, 75, 194);
/* oklch */ color: oklch(54.4% 0.182 305.6);
Tailwind
colors: {
  custom: {
    50: '#b080d5',
    500: '#8a4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bc2;
$custom-light: #b080d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bc2",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 271.765,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54425,
    "c": 0.18169,
    "h": 305.6
  },
  "luminance": 0.1433
}

Semantic roles & 50–950 ramp

primary
#8A4BC2
secondary
#B3CE9B
accent
#D94F90
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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