#8A1F90#8A1F90

#8A1F90 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.189 H 325.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8A1F90
RGBrgb(138, 31, 144)
HSLhsl(297, 65%, 34%)
HSVhsv(297, 78%, 56%)
CMYKcmyk(4.2%, 78.5%, 0%, 43.5%)
CIE-LABlab(34.80, 57.15, -38.31)
CIE-LCHlch(34.80, 68.80, 326.16°)
OKLaboklab(46.3% 0.1564 -0.1067)
OKLCHoklch(46.3% 0.189 325.7)
XYZxyz(16.0049, 8.3980, 27.1581)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F90 #25901F
analogous
#521F90 #8A1F90 #901F5E
triadic
#8A1F90 #908A1F #1F908A
tetradic
#8A1F90 #90521F #25901F #1F5E90
square
#8A1F90 #90521F #25901F #1F5E90
split-complementary
#8A1F90 #5E901F #1F9052
monochromatic
#29092B #5A145E #8A1F90 #BA2AC2 #D250D9

Accessibility & contrast

On white

7.84
#8A1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F90
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F90#FFFFFF#000000##FFFFFF
##8A1F901.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004993
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#8D3457
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f90;
/* rgb */ color: rgb(138, 31, 144);
/* oklch */ color: oklch(46.3% 0.189 325.7);
Tailwind
colors: {
  custom: {
    50: '#b068b1',
    500: '#8a1f90',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f90;
$custom-light: #b068b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f90",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 296.814,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46298,
    "c": 0.1893,
    "h": 325.7
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#8A1F90
secondary
#54BC4E
accent
#E84049
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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