#8A1B9F#8A1B9F

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

Color values

HEX#8A1B9F
RGBrgb(138, 27, 159)
HSLhsl(290, 71%, 36%)
HSVhsv(290, 83%, 62%)
CMYKcmyk(13.2%, 83%, 0%, 37.6%)
CIE-LABlab(35.38, 60.95, -46.52)
CIE-LCHlch(35.38, 76.68, 322.65°)
OKLaboklab(47.02% 0.1579 -0.1306)
OKLCHoklch(47.02% 0.205 320.4)
XYZxyz(17.1304, 8.6913, 33.5694)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B9F #309F1B
analogous
#481B9F #8A1B9F #9F1B72
triadic
#8A1B9F #9F8A1B #1B9F8A
tetradic
#8A1B9F #9F481B #309F1B #1B729F
square
#8A1B9F #9F481B #309F1B #1B729F
split-complementary
#8A1B9F #729F1B #1B9F48
monochromatic
#2F0936 #5D126B #8A1B9F #B724D3 #CB53E2

Accessibility & contrast

On white

7.67
#8A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B9F
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B9F#FFFFFF#000000##FFFFFF
##8A1B9F1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1b9f;
/* rgb */ color: rgb(138, 27, 159);
/* oklch */ color: oklch(47.0% 0.205 320.4);
Tailwind
colors: {
  custom: {
    50: '#b068bc',
    500: '#8a1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b9f;
$custom-light: #b068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b9f",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 290.455,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47023,
    "c": 0.20491,
    "h": 320.4
  },
  "luminance": 0.0869
}

Semantic roles & 50–950 ramp

primary
#8A1B9F
secondary
#64C551
accent
#EE3A57
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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