#8A1C9F#8A1C9F

#8A1C9F is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.1% C 0.204 H 320.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A1C9F
RGBrgb(138, 28, 159)
HSLhsl(290, 70%, 37%)
HSVhsv(290, 82%, 62%)
CMYKcmyk(13.2%, 82.4%, 0%, 37.6%)
CIE-LABlab(35.47, 60.69, -46.37)
CIE-LCHlch(35.47, 76.38, 322.62°)
OKLaboklab(47.09% 0.1572 -0.1302)
OKLCHoklch(47.09% 0.204 320.4)
XYZxyz(17.1537, 8.7379, 33.5772)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C9F #319F1C
analogous
#491C9F #8A1C9F #9F1C73
triadic
#8A1C9F #9F8A1C #1C9F8A
tetradic
#8A1C9F #9F491C #319F1C #1C739F
square
#8A1C9F #9F491C #319F1C #1C739F
split-complementary
#8A1C9F #739F1C #1C9F49
monochromatic
#300A37 #5D136B #8A1C9F #B725D3 #CA54E1

Accessibility & contrast

On white

7.64
#8A1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C9F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C9F#FFFFFF#000000##FFFFFF
##8A1C9F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#2B579C
Tritanopia (blue-blind)
#8B3A5F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1c9f;
/* rgb */ color: rgb(138, 28, 159);
/* oklch */ color: oklch(47.1% 0.204 320.4);
Tailwind
colors: {
  custom: {
    50: '#b068bc',
    500: '#8a1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c9f;
$custom-light: #b068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c9f",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 290.382,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47087,
    "c": 0.2041,
    "h": 320.4
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#8A1C9F
secondary
#65C453
accent
#ED3B57
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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