#8A1F92#8A1F92

#8A1F92 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.191 H 324.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8A1F92
RGBrgb(138, 31, 146)
HSLhsl(296, 65%, 35%)
HSVhsv(296, 79%, 57%)
CMYKcmyk(5.5%, 78.8%, 0%, 42.7%)
CIE-LABlab(34.92, 57.50, -39.34)
CIE-LCHlch(34.92, 69.67, 325.62°)
OKLaboklab(46.43% 0.1563 -0.1097)
OKLCHoklch(46.43% 0.191 324.9)
XYZxyz(16.1591, 8.4596, 27.9703)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F92 #27921F
analogous
#511F92 #8A1F92 #921F61
triadic
#8A1F92 #928A1F #1F928A
tetradic
#8A1F92 #92511F #27921F #1F6192
square
#8A1F92 #92511F #27921F #1F6192
split-complementary
#8A1F92 #61921F #1F9251
monochromatic
#2B0A2D #5A1460 #8A1F92 #BA2AC4 #D151DA

Accessibility & contrast

On white

7.80
#8A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F92
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F92#FFFFFF#000000##FFFFFF
##8A1F921.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#38568F
Tritanopia (blue-blind)
#8D3558
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f92;
/* rgb */ color: rgb(138, 31, 146);
/* oklch */ color: oklch(46.4% 0.191 324.9);
Tailwind
colors: {
  custom: {
    50: '#b068b2',
    500: '#8a1f92',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f92;
$custom-light: #b068b2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f92",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 295.826,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46426,
    "c": 0.1909,
    "h": 324.9
  },
  "luminance": 0.08459
}

Semantic roles & 50–950 ramp

primary
#8A1F92
secondary
#57BD50
accent
#E8404C
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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