#8A2A9C#8A2A9C

#8A2A9C is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.188 H 320.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8A2A9C
RGBrgb(138, 42, 156)
HSLhsl(291, 58%, 39%)
HSVhsv(291, 73%, 61%)
CMYKcmyk(11.5%, 73.1%, 0%, 38.8%)
CIE-LABlab(36.86, 55.58, -42.34)
CIE-LCHlch(36.86, 69.87, 322.70°)
OKLaboklab(48% 0.1454 -0.1185)
OKLCHoklch(48% 0.188 320.8)
XYZxyz(17.3092, 9.4604, 32.3604)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A9C #3C9C2A
analogous
#512A9C #8A2A9C #9C2A75
triadic
#8A2A9C #9C8A2A #2A9C8A
tetradic
#8A2A9C #9C512A #3C9C2A #2A759C
square
#8A2A9C #9C512A #3C9C2A #2A759C
split-complementary
#8A2A9C #759C2A #2A9C51
monochromatic
#35103C #5F1D6C #8A2A9C #B339CA #C66AD7

Accessibility & contrast

On white

7.26
#8A2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A9C
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A9C#FFFFFF#000000##FFFFFF
##8A2A9C1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#365A99
Tritanopia (blue-blind)
#8B4060
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2a9c;
/* rgb */ color: rgb(138, 42, 156);
/* oklch */ color: oklch(48.0% 0.188 320.8);
Tailwind
colors: {
  custom: {
    50: '#b06dba',
    500: '#8a2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a9c;
$custom-light: #b06dba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a9c",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 290.526,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48003,
    "c": 0.18758,
    "h": 320.8
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#8A2A9C
secondary
#73BD65
accent
#E1475F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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