#8A1F93#8A1F93

#8A1F93 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.192 H 324.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8A1F93
RGBrgb(138, 31, 147)
HSLhsl(295, 65%, 35%)
HSVhsv(295, 79%, 58%)
CMYKcmyk(6.1%, 78.9%, 0%, 42.4%)
CIE-LABlab(34.98, 57.67, -39.85)
CIE-LCHlch(34.98, 70.10, 325.35°)
OKLaboklab(46.49% 0.1562 -0.1112)
OKLCHoklch(46.49% 0.192 324.6)
XYZxyz(16.2373, 8.4909, 28.3818)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F93 #28931F
analogous
#501F93 #8A1F93 #931F62
triadic
#8A1F93 #938A1F #1F938A
tetradic
#8A1F93 #93501F #28931F #1F6293
square
#8A1F93 #93501F #28931F #1F6293
split-complementary
#8A1F93 #62931F #1F9350
monochromatic
#2B0A2E #5B1460 #8A1F93 #B92AC6 #D052DA

Accessibility & contrast

On white

7.78
#8A1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F93
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F93#FFFFFF#000000##FFFFFF
##8A1F931.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A96
Deuteranopia (green-blind)
#375790
Tritanopia (blue-blind)
#8D3559
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f93;
/* rgb */ color: rgb(138, 31, 147);
/* oklch */ color: oklch(46.5% 0.192 324.6);
Tailwind
colors: {
  custom: {
    50: '#b068b3',
    500: '#8a1f93',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f93;
$custom-light: #b068b3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f93",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 295.345,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.19171,
    "h": 324.6
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#8A1F93
secondary
#59BE50
accent
#E8404D
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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