#8A1F85#8A1F85

#8A1F85 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.181 H 330.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8A1F85
RGBrgb(138, 31, 133)
HSLhsl(303, 63%, 33%)
HSVhsv(303, 78%, 54%)
CMYKcmyk(0%, 77.5%, 3.6%, 45.9%)
CIE-LABlab(34.14, 55.29, -32.56)
CIE-LCHlch(34.14, 64.16, 329.51°)
OKLaboklab(45.62% 0.1567 -0.0899)
OKLCHoklch(45.62% 0.181 330.1)
XYZxyz(15.2048, 8.0779, 22.9441)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F85 #1F8A24
analogous
#591F8A #8A1F85 #8A1F4F
triadic
#8A1F85 #858A1F #1F858A
tetradic
#8A1F85 #8A591F #1F8A24 #1F4F8A
square
#8A1F85 #8A591F #1F8A24 #1F4F8A
split-complementary
#8A1F85 #4F8A1F #1F8A59
monochromatic
#260925 #581455 #8A1F85 #BC2AB5 #D74CD0

Accessibility & contrast

On white

8.03
#8A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F85
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F85#FFFFFF#000000##FFFFFF
##8A1F851.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104788
Deuteranopia (green-blind)
#405582
Tritanopia (blue-blind)
#8F2E51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f85;
/* rgb */ color: rgb(138, 31, 133);
/* oklch */ color: oklch(45.6% 0.181 330.1);
Tailwind
colors: {
  custom: {
    50: '#b068a9',
    500: '#8a1f85',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f85;
$custom-light: #b068a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f85",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 302.804,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45622,
    "c": 0.18065,
    "h": 330.1
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#8A1F85
secondary
#4BBA50
accent
#E64941
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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