#8A1F82#8A1F82

#8A1F82 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.178 H 331.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8A1F82
RGBrgb(138, 31, 130)
HSLhsl(304, 63%, 33%)
HSVhsv(304, 78%, 54%)
CMYKcmyk(0%, 77.5%, 5.8%, 45.9%)
CIE-LABlab(33.98, 54.80, -30.96)
CIE-LCHlch(33.98, 62.94, 330.53°)
OKLaboklab(45.45% 0.1566 -0.0853)
OKLCHoklch(45.45% 0.178 331.4)
XYZxyz(15.0005, 7.9962, 21.8681)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F82 #1F8A27
analogous
#5C1F8A #8A1F82 #8A1F4C
triadic
#8A1F82 #828A1F #1F828A
tetradic
#8A1F82 #8A5C1F #1F8A27 #1F4C8A
square
#8A1F82 #8A5C1F #1F8A27 #1F4C8A
split-complementary
#8A1F82 #4C8A1F #1F8A5C
monochromatic
#260924 #581453 #8A1F82 #BC2AB1 #D74CCD

Accessibility & contrast

On white

8.08
#8A1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F82
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F82#FFFFFF#000000##FFFFFF
##8A1F821.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154685
Deuteranopia (green-blind)
#42557F
Tritanopia (blue-blind)
#902D4F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f82;
/* rgb */ color: rgb(138, 31, 130);
/* oklch */ color: oklch(45.4% 0.178 331.4);
Tailwind
colors: {
  custom: {
    50: '#b068a7',
    500: '#8a1f82',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f82;
$custom-light: #b068a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f82",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 304.486,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45446,
    "c": 0.17836,
    "h": 331.4
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#8A1F82
secondary
#4BBA53
accent
#E64E41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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