#8A2F8F#8A2F8F

#8A2F8F is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.170 H 325.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A2F8F
RGBrgb(138, 47, 143)
HSLhsl(297, 51%, 37%)
HSVhsv(297, 67%, 56%)
CMYKcmyk(3.5%, 67.1%, 0%, 43.9%)
CIE-LABlab(36.78, 51.16, -34.54)
CIE-LCHlch(36.78, 61.73, 325.97°)
OKLaboklab(47.7% 0.1403 -0.0958)
OKLCHoklch(47.7% 0.17 325.7)
XYZxyz(16.4553, 9.4205, 26.9329)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8F #348F2F
analogous
#5A2F8F #8A2F8F #8F2F64
triadic
#8A2F8F #8F8A2F #2F8F8A
tetradic
#8A2F8F #8F5A2F #348F2F #2F648F
square
#8A2F8F #8F5A2F #348F2F #2F648F
split-complementary
#8A2F8F #648F2F #2F8F5A
monochromatic
#311133 #5E2061 #8A2F8F #B63EBD #C96ACE

Accessibility & contrast

On white

7.28
#8A2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2F8F
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8F#FFFFFF#000000##FFFFFF
##8A2F8F1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F92
Deuteranopia (green-blind)
#425A8D
Tritanopia (blue-blind)
#8D3D5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f8f;
/* rgb */ color: rgb(138, 47, 143);
/* oklch */ color: oklch(47.7% 0.170 325.7);
Tailwind
colors: {
  custom: {
    50: '#af6fb0',
    500: '#8a2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8f;
$custom-light: #af6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8f",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 296.875,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47699,
    "c": 0.16986,
    "h": 325.7
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

primary
#8A2F8F
secondary
#69B565
accent
#DA4E55
background
#FBF7FA
surface
#F6EDF5
border
#D0C8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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