#8A2A9F#8A2A9F

#8A2A9F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.190 H 319.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A2A9F
RGBrgb(138, 42, 159)
HSLhsl(289, 58%, 39%)
HSVhsv(289, 74%, 62%)
CMYKcmyk(13.2%, 73.6%, 0%, 37.6%)
CIE-LABlab(37.05, 56.16, -43.85)
CIE-LCHlch(37.05, 71.25, 322.02°)
OKLaboklab(48.2% 0.1452 -0.1229)
OKLCHoklch(48.2% 0.19 319.7)
XYZxyz(17.5664, 9.5633, 33.7148)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A9F #3F9F2A
analogous
#502A9F #8A2A9F #9F2A7A
triadic
#8A2A9F #9F8A2A #2A9F8A
tetradic
#8A2A9F #9F502A #3F9F2A #2A7A9F
square
#8A2A9F #9F502A #3F9F2A #2A7A9F
split-complementary
#8A2A9F #7A9F2A #2A9F50
monochromatic
#36103E #601D6F #8A2A9F #B13BCB #C56BD8

Accessibility & contrast

On white

7.21
#8A2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A2A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A9F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A9F#FFFFFF#000000##FFFFFF
##8A2A9F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#345A9C
Tritanopia (blue-blind)
#8A4162
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2a9f;
/* rgb */ color: rgb(138, 42, 159);
/* oklch */ color: oklch(48.2% 0.190 319.7);
Tailwind
colors: {
  custom: {
    50: '#b06dbc',
    500: '#8a2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a9f;
$custom-light: #b06dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a9f",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 289.231,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.482,
    "c": 0.19022,
    "h": 319.7
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#8A2A9F
secondary
#76BF66
accent
#E14662
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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