#8A1790#8A1790

#8A1790 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.196 H 325.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8A1790
RGBrgb(138, 23, 144)
HSLhsl(297, 72%, 33%)
HSVhsv(297, 84%, 56%)
CMYKcmyk(4.2%, 84%, 0%, 43.5%)
CIE-LABlab(34.05, 59.33, -39.51)
CIE-LCHlch(34.05, 71.28, 326.34°)
OKLaboklab(45.77% 0.1624 -0.1101)
OKLCHoklch(45.77% 0.196 325.9)
XYZxyz(15.8213, 8.0308, 27.0969)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1790 #1D9017
analogous
#4E1790 #8A1790 #901759
triadic
#8A1790 #908A17 #17908A
tetradic
#8A1790 #904E17 #1D9017 #175990
square
#8A1790 #904E17 #1D9017 #175990
split-complementary
#8A1790 #599017 #17904E
monochromatic
#250626 #570F5B #8A1790 #BD1FC5 #D941E1

Accessibility & contrast

On white

8.06
#8A1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1790
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1790#FFFFFF#000000##FFFFFF
##8A17901.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#36558D
Tritanopia (blue-blind)
#8E3055
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1790;
/* rgb */ color: rgb(138, 23, 144);
/* oklch */ color: oklch(45.8% 0.196 325.9);
Tailwind
colors: {
  custom: {
    50: '#b065b1',
    500: '#8a1790',
    950: '#000000',
  },
}
SCSS
$custom: #8a1790;
$custom-light: #b065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1790",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 297.025,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45766,
    "c": 0.19625,
    "h": 325.9
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#8A1790
secondary
#48C142
accent
#EF3942
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1790

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

Preview Lab → · Contrast checker → · Palette generator →

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