#8A2F8D#8A2F8D

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

Color values

HEX#8A2F8D
RGBrgb(138, 47, 141)
HSLhsl(298, 50%, 37%)
HSVhsv(298, 67%, 55%)
CMYKcmyk(2.1%, 66.7%, 0%, 44.7%)
CIE-LABlab(36.67, 50.80, -33.50)
CIE-LCHlch(36.67, 60.85, 326.60°)
OKLaboklab(47.58% 0.1402 -0.0928)
OKLCHoklch(47.58% 0.168 326.5)
XYZxyz(16.3052, 9.3604, 26.1421)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8D #328D2F
analogous
#5B2F8D #8A2F8D #8D2F61
triadic
#8A2F8D #8D8A2F #2F8D8A
tetradic
#8A2F8D #8D5B2F #328D2F #2F618D
square
#8A2F8D #8D5B2F #328D2F #2F618D
split-complementary
#8A2F8D #618D2F #2F8D5B
monochromatic
#301031 #5D205F #8A2F8D #B73EBB #CA69CD

Accessibility & contrast

On white

7.31
#8A2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F8D
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8D#FFFFFF#000000##FFFFFF
##8A2F8D1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#445A8B
Tritanopia (blue-blind)
#8E3C5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f8d;
/* rgb */ color: rgb(138, 47, 141);
/* oklch */ color: oklch(47.6% 0.168 326.5);
Tailwind
colors: {
  custom: {
    50: '#af6faf',
    500: '#8a2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8d;
$custom-light: #af6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8d",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 298.085,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47582,
    "c": 0.16811,
    "h": 326.5
  },
  "luminance": 0.09359
}

Semantic roles & 50–950 ramp

primary
#8A2F8D
secondary
#66B464
accent
#DA4E53
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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