#8A2F83#8A2F83

#8A2F83 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.0% C 0.160 H 331.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8A2F83
RGBrgb(138, 47, 131)
HSLhsl(305, 49%, 36%)
HSVhsv(305, 66%, 54%)
CMYKcmyk(0%, 65.9%, 5.1%, 45.9%)
CIE-LABlab(36.13, 49.02, -28.18)
CIE-LCHlch(36.13, 56.55, 330.11°)
OKLaboklab(47.02% 0.1395 -0.0774)
OKLCHoklch(47.02% 0.16 331)
XYZxyz(15.5944, 9.0761, 22.3989)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F83 #2F8A36
analogous
#642F8A #8A2F83 #8A2F56
triadic
#8A2F83 #838A2F #2F838A
tetradic
#8A2F83 #8A642F #2F8A36 #2F568A
square
#8A2F83 #8A642F #2F8A36 #2F568A
split-complementary
#8A2F83 #568A2F #2F8A64
monochromatic
#2F102C #5C1F58 #8A2F83 #B83FAE #CC68C4

Accessibility & contrast

On white

7.46
#8A2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F83
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F83#FFFFFF#000000##FFFFFF
##8A2F831.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294D85
Deuteranopia (green-blind)
#495981
Tritanopia (blue-blind)
#8F3855
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f83;
/* rgb */ color: rgb(138, 47, 131);
/* oklch */ color: oklch(47.0% 0.160 331.0);
Tailwind
colors: {
  custom: {
    50: '#af6fa7',
    500: '#8a2f83',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f83;
$custom-light: #af6fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f83",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 304.615,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47017,
    "c": 0.15957,
    "h": 331
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#8A2F83
secondary
#62B368
accent
#D95A4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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