#8A1F83#8A1F83

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

Color values

HEX#8A1F83
RGBrgb(138, 31, 131)
HSLhsl(304, 63%, 33%)
HSVhsv(304, 78%, 54%)
CMYKcmyk(0%, 77.5%, 5.1%, 45.9%)
CIE-LABlab(34.03, 54.96, -31.49)
CIE-LCHlch(34.03, 63.34, 330.18°)
OKLaboklab(45.5% 0.1567 -0.0868)
OKLCHoklch(45.5% 0.179 331)
XYZxyz(15.0679, 8.0232, 22.2234)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F83 #1F8A26
analogous
#5B1F8A #8A1F83 #8A1F4D
triadic
#8A1F83 #838A1F #1F838A
tetradic
#8A1F83 #8A5B1F #1F8A26 #1F4D8A
square
#8A1F83 #8A5B1F #1F8A26 #1F4D8A
split-complementary
#8A1F83 #4D8A1F #1F8A5B
monochromatic
#260924 #581454 #8A1F83 #BC2AB2 #D74CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1F83#FFFFFF#000000##FFFFFF
##8A1F831.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134786
Deuteranopia (green-blind)
#415580
Tritanopia (blue-blind)
#902D50
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f83;
/* rgb */ color: rgb(138, 31, 131);
/* oklch */ color: oklch(45.5% 0.179 331.0);
Tailwind
colors: {
  custom: {
    50: '#b068a7',
    500: '#8a1f83',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f83;
$custom-light: #b068a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f83",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 303.925,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45504,
    "c": 0.17911,
    "h": 331
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#8A1F83
secondary
#4BBA52
accent
#E64C41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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