#8A2F9C#8A2F9C

#8A2F9C is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.181 H 320.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9C
RGBrgb(138, 47, 156)
HSLhsl(290, 54%, 40%)
HSVhsv(290, 70%, 61%)
CMYKcmyk(11.5%, 69.9%, 0%, 38.8%)
CIE-LABlab(37.55, 53.62, -41.23)
CIE-LCHlch(37.55, 67.64, 322.44°)
OKLaboklab(48.5% 0.1402 -0.1153)
OKLCHoklch(48.5% 0.182 320.6)
XYZxyz(17.4978, 9.8375, 32.4232)
Luminance0.0984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9C #419C2F
analogous
#542F9C #8A2F9C #9C2F77
triadic
#8A2F9C #9C8A2F #2F9C8A
tetradic
#8A2F9C #9C542F #419C2F #2F779C
square
#8A2F9C #9C542F #419C2F #2F779C
split-complementary
#8A2F9C #779C2F #2F9C54
monochromatic
#37133E #60216D #8A2F9C #B042C6 #C471D4

Accessibility & contrast

On white

7.08
#8A2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2F9C
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9C#FFFFFF#000000##FFFFFF
##8A2F9C1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02529F
Deuteranopia (green-blind)
#3A5C99
Tritanopia (blue-blind)
#8B4362
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f9c;
/* rgb */ color: rgb(138, 47, 156);
/* oklch */ color: oklch(48.5% 0.181 320.6);
Tailwind
colors: {
  custom: {
    50: '#af70ba',
    500: '#8a2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9c;
$custom-light: #af70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9c",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 290.092,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48499,
    "c": 0.1815,
    "h": 320.6
  },
  "luminance": 0.09837
}

Semantic roles & 50–950 ramp

primary
#8A2F9C
secondary
#78BC6B
accent
#DD4B63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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