#8A1FA0#8A1FA0

#8A1FA0 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.4% C 0.202 H 319.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8A1FA0
RGBrgb(138, 31, 160)
HSLhsl(290, 68%, 37%)
HSVhsv(290, 81%, 63%)
CMYKcmyk(13.8%, 80.6%, 0%, 37.3%)
CIE-LABlab(35.83, 60.02, -46.40)
CIE-LCHlch(35.83, 75.87, 322.30°)
OKLaboklab(47.36% 0.1548 -0.1303)
OKLCHoklch(47.36% 0.202 319.9)
XYZxyz(17.3156, 8.9222, 34.0610)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FA0 #35A01F
analogous
#491FA0 #8A1FA0 #A01F76
triadic
#8A1FA0 #A08A1F #1FA08A
tetradic
#8A1FA0 #A0491F #35A01F #1F76A0
square
#8A1FA0 #A0491F #35A01F #1F76A0
split-complementary
#8A1FA0 #76A01F #1FA049
monochromatic
#320B39 #5E156D #8A1FA0 #B629D3 #C85ADF

Accessibility & contrast

On white

7.54
#8A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FA0
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FA0#FFFFFF#000000##FFFFFF
##8A1FA01.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#2C589D
Tritanopia (blue-blind)
#8A3C60
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1fa0;
/* rgb */ color: rgb(138, 31, 160);
/* oklch */ color: oklch(47.4% 0.202 319.9);
Tailwind
colors: {
  custom: {
    50: '#b069bd',
    500: '#8a1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fa0;
$custom-light: #b069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fa0",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 289.767,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47362,
    "c": 0.20234,
    "h": 319.9
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#8A1FA0
secondary
#6AC358
accent
#EA3D5B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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