#8A1F94#8A1F94

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

Color values

HEX#8A1F94
RGBrgb(138, 31, 148)
HSLhsl(295, 65%, 35%)
HSVhsv(295, 79%, 58%)
CMYKcmyk(6.8%, 79.1%, 0%, 42%)
CIE-LABlab(35.05, 57.85, -40.36)
CIE-LCHlch(35.05, 70.54, 325.09°)
OKLaboklab(46.56% 0.1561 -0.1127)
OKLCHoklch(46.56% 0.193 324.2)
XYZxyz(16.3161, 8.5224, 28.7968)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F94 #29941F
analogous
#501F94 #8A1F94 #941F63
triadic
#8A1F94 #948A1F #1F948A
tetradic
#8A1F94 #94501F #29941F #1F6394
square
#8A1F94 #94501F #29941F #1F6394
split-complementary
#8A1F94 #63941F #1F9450
monochromatic
#2C0A2F #5B1461 #8A1F94 #B92AC7 #CF53DB

Accessibility & contrast

On white

7.77
#8A1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F94
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F94#FFFFFF#000000##FFFFFF
##8A1F941.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#375791
Tritanopia (blue-blind)
#8D3659
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f94;
/* rgb */ color: rgb(138, 31, 148);
/* oklch */ color: oklch(46.6% 0.193 324.2);
Tailwind
colors: {
  custom: {
    50: '#b068b4',
    500: '#8a1f94',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f94;
$custom-light: #b068b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f94",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 294.872,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.19252,
    "h": 324.2
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#8A1F94
secondary
#5ABE51
accent
#E83F4E
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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