#8A2F8E#8A2F8E

#8A2F8E is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.169 H 326.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A2F8E
RGBrgb(138, 47, 142)
HSLhsl(297, 50%, 37%)
HSVhsv(297, 67%, 56%)
CMYKcmyk(2.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(36.73, 50.98, -34.02)
CIE-LCHlch(36.73, 61.29, 326.28°)
OKLaboklab(47.64% 0.1402 -0.0943)
OKLCHoklch(47.64% 0.169 326.1)
XYZxyz(16.3799, 9.3903, 26.5357)
Luminance0.0939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8E #338E2F
analogous
#5B2F8E #8A2F8E #8E2F63
triadic
#8A2F8E #8E8A2F #2F8E8A
tetradic
#8A2F8E #8E5B2F #338E2F #2F638E
square
#8A2F8E #8E5B2F #338E2F #2F638E
split-complementary
#8A2F8E #638E2F #2F8E5B
monochromatic
#311132 #5D2060 #8A2F8E #B73EBC #C96ACE

Accessibility & contrast

On white

7.30
#8A2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F8E
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8E#FFFFFF#000000##FFFFFF
##8A2F8E1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F91
Deuteranopia (green-blind)
#435A8C
Tritanopia (blue-blind)
#8E3D5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f8e;
/* rgb */ color: rgb(138, 47, 142);
/* oklch */ color: oklch(47.6% 0.169 326.1);
Tailwind
colors: {
  custom: {
    50: '#af6faf',
    500: '#8a2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8e;
$custom-light: #af6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8e",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 297.474,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4764,
    "c": 0.16899,
    "h": 326.1
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#8A2F8E
secondary
#67B564
accent
#DA4E54
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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