#8A2F88#8A2F88

#8A2F88 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.164 H 328.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8A2F88
RGBrgb(138, 47, 136)
HSLhsl(301, 49%, 36%)
HSVhsv(301, 66%, 54%)
CMYKcmyk(0%, 65.9%, 1.4%, 45.9%)
CIE-LABlab(36.40, 49.90, -30.86)
CIE-LCHlch(36.40, 58.67, 328.27°)
OKLaboklab(47.3% 0.1399 -0.0851)
OKLCHoklch(47.3% 0.164 328.7)
XYZxyz(15.9415, 9.2150, 24.2268)
Luminance0.0921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F88 #2F8A31
analogous
#5F2F8A #8A2F88 #8A2F5B
triadic
#8A2F88 #888A2F #2F888A
tetradic
#8A2F88 #8A5F2F #2F8A31 #2F5B8A
square
#8A2F88 #8A5F2F #2F8A31 #2F5B8A
split-complementary
#8A2F88 #5B8A2F #2F8A5F
monochromatic
#2F102E #5C1F5B #8A2F88 #B83FB5 #CC68C9

Accessibility & contrast

On white

7.39
#8A2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F88
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F88#FFFFFF#000000##FFFFFF
##8A2F881.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254E8B
Deuteranopia (green-blind)
#465A86
Tritanopia (blue-blind)
#8F3A57
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f88;
/* rgb */ color: rgb(138, 47, 136);
/* oklch */ color: oklch(47.3% 0.164 328.7);
Tailwind
colors: {
  custom: {
    50: '#af6fab',
    500: '#8a2f88',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f88;
$custom-light: #af6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f88",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 301.319,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47295,
    "c": 0.16379,
    "h": 328.7
  },
  "luminance": 0.09214
}

Semantic roles & 50–950 ramp

primary
#8A2F88
secondary
#62B364
accent
#D9524F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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