#8A1F95#8A1F95

#8A1F95 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.193 H 323.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8A1F95
RGBrgb(138, 31, 149)
HSLhsl(294, 66%, 35%)
HSVhsv(294, 79%, 58%)
CMYKcmyk(7.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(35.11, 58.03, -40.87)
CIE-LCHlch(35.11, 70.98, 324.84°)
OKLaboklab(46.62% 0.156 -0.1141)
OKLCHoklch(46.62% 0.193 323.8)
XYZxyz(16.3956, 8.5542, 29.2155)
Luminance0.0855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F95 #2A951F
analogous
#4F1F95 #8A1F95 #951F65
triadic
#8A1F95 #958A1F #1F958A
tetradic
#8A1F95 #954F1F #2A951F #1F6595
square
#8A1F95 #954F1F #2A951F #1F6595
split-complementary
#8A1F95 #65951F #1F954F
monochromatic
#2C0A30 #5B1462 #8A1F95 #B92AC8 #CF53DB

Accessibility & contrast

On white

7.75
#8A1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F95
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F95#FFFFFF#000000##FFFFFF
##8A1F951.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#365792
Tritanopia (blue-blind)
#8D365A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1f95;
/* rgb */ color: rgb(138, 31, 149);
/* oklch */ color: oklch(46.6% 0.193 323.8);
Tailwind
colors: {
  custom: {
    50: '#b068b5',
    500: '#8a1f95',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f95;
$custom-light: #b068b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f95",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 294.407,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.19333,
    "h": 323.8
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#8A1F95
secondary
#5BBF51
accent
#E93F4F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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