#8A1AC9#8A1AC9

#8A1AC9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.2% C 0.240 H 308.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A1AC9
RGBrgb(138, 26, 201)
HSLhsl(278, 77%, 45%)
HSVhsv(278, 87%, 79%)
CMYKcmyk(31.3%, 87.1%, 0%, 21.2%)
CIE-LABlab(38.48, 69.31, -66.42)
CIE-LCHlch(38.48, 96.00, 316.22°)
OKLaboklab(50.17% 0.1483 -0.1891)
OKLCHoklch(50.17% 0.24 308.1)
XYZxyz(21.3910, 10.3595, 56.1197)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1AC9 #59C91A
analogous
#321AC9 #8A1AC9 #C91AB1
triadic
#8A1AC9 #C98A1A #1AC98A
tetradic
#8A1AC9 #C9321A #59C91A #1AB1C9
square
#8A1AC9 #C9321A #59C91A #1AB1C9
split-complementary
#8A1AC9 #B1C91A #1AC932
monochromatic
#400C5D #651393 #8A1AC9 #A83BE6 #C071ED

Accessibility & contrast

On white

6.84
#8A1AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A1AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A1AC9
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1AC9#FFFFFF#000000##FFFFFF
##8A1AC91.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#7F4E77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a1ac9;
/* rgb */ color: rgb(138, 26, 201);
/* oklch */ color: oklch(50.2% 0.240 308.1);
Tailwind
colors: {
  custom: {
    50: '#b36adb',
    500: '#8a1ac9',
    950: '#000000',
  },
}
SCSS
$custom: #8a1ac9;
$custom-light: #b36adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1ac9",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 201
  },
  "hsl": {
    "h": 278.4,
    "s": 77.093,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.24031,
    "h": 308.1
  },
  "luminance": 0.10359
}

Semantic roles & 50–950 ramp

primary
#8A1AC9
secondary
#91D36C
accent
#F43479
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#120715
muted
#817A83

Preview Lab

Preview with #8A1AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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