#8A1F8B#8A1F8B

#8A1F8B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.185 H 327.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8B
RGBrgb(138, 31, 139)
HSLhsl(299, 64%, 33%)
HSVhsv(299, 78%, 55%)
CMYKcmyk(0.7%, 77.7%, 0%, 45.5%)
CIE-LABlab(34.50, 56.29, -35.72)
CIE-LCHlch(34.50, 66.66, 327.60°)
OKLaboklab(45.99% 0.1566 -0.0991)
OKLCHoklch(45.99% 0.185 327.7)
XYZxyz(15.6312, 8.2485, 25.1899)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8B #208B1F
analogous
#541F8B #8A1F8B #8B1F56
triadic
#8A1F8B #8B8A1F #1F8B8A
tetradic
#8A1F8B #8B541F #208B1F #1F568B
square
#8A1F8B #8B541F #208B1F #1F568B
split-complementary
#8A1F8B #568B1F #1F8B54
monochromatic
#270927 #581459 #8A1F8B #BC2ABD #D64DD7

Accessibility & contrast

On white

7.93
#8A1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F8B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8B#FFFFFF#000000##FFFFFF
##8A1F8B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488E
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#8E3154
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f8b;
/* rgb */ color: rgb(138, 31, 139);
/* oklch */ color: oklch(46.0% 0.185 327.7);
Tailwind
colors: {
  custom: {
    50: '#b068ad',
    500: '#8a1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8b;
$custom-light: #b068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8b",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 299.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45985,
    "c": 0.18533,
    "h": 327.7
  },
  "luminance": 0.08247
}

Semantic roles & 50–950 ramp

primary
#8A1F8B
secondary
#4DBA4C
accent
#E74143
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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