#8F2A8E#8F2A8E

#8F2A8E is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.178 H 328.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8F2A8E
RGBrgb(143, 42, 142)
HSLhsl(301, 55%, 36%)
HSVhsv(301, 71%, 56%)
CMYKcmyk(0%, 70.6%, 0.7%, 43.9%)
CIE-LABlab(36.84, 54.18, -33.79)
CIE-LCHlch(36.84, 63.85, 328.05°)
OKLaboklab(47.88% 0.1516 -0.0935)
OKLCHoklch(47.88% 0.178 328.3)
XYZxyz(17.0379, 9.4498, 26.5125)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2A8E #2A8F2B
analogous
#5E2A8F #8F2A8E #8F2A5C
triadic
#8F2A8E #8E8F2A #2A8E8F
tetradic
#8F2A8E #8F5E2A #2A8F2B #2A5C8F
square
#8F2A8E #8F5E2A #2A8F2B #2A5C8F
split-complementary
#8F2A8E #5C8F2A #2A8F5E
monochromatic
#300E30 #601C5F #8F2A8E #BE38BD #D162D0

Accessibility & contrast

On white

7.27
#8F2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8F2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2A8E
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2A8E#FFFFFF#000000##FFFFFF
##8F2A8E1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E91
Deuteranopia (green-blind)
#455B8B
Tritanopia (blue-blind)
#943859
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f2a8e;
/* rgb */ color: rgb(143, 42, 142);
/* oklch */ color: oklch(47.9% 0.178 328.3);
Tailwind
colors: {
  custom: {
    50: '#b36daf',
    500: '#8f2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #8f2a8e;
$custom-light: #b36daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2a8e",
  "rgb": {
    "r": 143,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 300.594,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47881,
    "c": 0.17806,
    "h": 328.3
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#8F2A8E
secondary
#5EB75F
accent
#DE4B4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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