#8A2F7F#8A2F7F

#8A2F7F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.8% C 0.156 H 332.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A2F7F
RGBrgb(138, 47, 127)
HSLhsl(307, 49%, 36%)
HSVhsv(307, 66%, 54%)
CMYKcmyk(0%, 65.9%, 8%, 45.9%)
CIE-LABlab(35.93, 48.34, -26.02)
CIE-LCHlch(35.93, 54.90, 331.71°)
OKLaboklab(46.8% 0.1391 -0.0712)
OKLCHoklch(46.8% 0.156 332.9)
XYZxyz(15.3286, 8.9698, 20.9986)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F7F #2F8A3A
analogous
#682F8A #8A2F7F #8A2F52
triadic
#8A2F7F #7F8A2F #2F7F8A
tetradic
#8A2F7F #8A682F #2F8A3A #2F528A
square
#8A2F7F #8A682F #2F8A3A #2F528A
split-complementary
#8A2F7F #528A2F #2F8A68
monochromatic
#2F102B #5C1F55 #8A2F7F #B83FA9 #CC68BF

Accessibility & contrast

On white

7.52
#8A2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F7F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F7F#FFFFFF#000000##FFFFFF
##8A2F7F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C81
Deuteranopia (green-blind)
#4B597D
Tritanopia (blue-blind)
#903752
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2f7f;
/* rgb */ color: rgb(138, 47, 127);
/* oklch */ color: oklch(46.8% 0.156 332.9);
Tailwind
colors: {
  custom: {
    50: '#af6fa4',
    500: '#8a2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f7f;
$custom-light: #af6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f7f",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 307.253,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46802,
    "c": 0.15628,
    "h": 332.9
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#8A2F7F
secondary
#62B36C
accent
#D9604F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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