#8A2F9D#8A2F9D

#8A2F9D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.182 H 320.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9D
RGBrgb(138, 47, 157)
HSLhsl(290, 54%, 40%)
HSVhsv(290, 70%, 62%)
CMYKcmyk(12.1%, 70.1%, 0%, 38.4%)
CIE-LABlab(37.61, 53.81, -41.74)
CIE-LCHlch(37.61, 68.10, 322.21°)
OKLaboklab(48.56% 0.1401 -0.1168)
OKLCHoklch(48.56% 0.182 320.2)
XYZxyz(17.5828, 9.8715, 32.8710)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9D #429D2F
analogous
#532F9D #8A2F9D #9D2F79
triadic
#8A2F9D #9D8A2F #2F9D8A
tetradic
#8A2F9D #9D532F #429D2F #2F799D
square
#8A2F9D #9D532F #429D2F #2F799D
split-complementary
#8A2F9D #799D2F #2F9D53
monochromatic
#37133F #61216E #8A2F9D #B043C7 #C472D5

Accessibility & contrast

On white

7.06
#8A2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F9D
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9D#FFFFFF#000000##FFFFFF
##8A2F9D1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#395C9A
Tritanopia (blue-blind)
#8B4362
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f9d;
/* rgb */ color: rgb(138, 47, 157);
/* oklch */ color: oklch(48.6% 0.182 320.2);
Tailwind
colors: {
  custom: {
    50: '#af70ba',
    500: '#8a2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9d;
$custom-light: #af70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9d",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 289.636,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.1824,
    "h": 320.2
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#8A2F9D
secondary
#79BC6B
accent
#DD4B64
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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