#8A2B99#8A2B99

#8A2B99 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.184 H 321.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A2B99
RGBrgb(138, 43, 153)
HSLhsl(292, 56%, 38%)
HSVhsv(292, 72%, 60%)
CMYKcmyk(9.8%, 71.9%, 0%, 40%)
CIE-LABlab(36.80, 54.63, -40.60)
CIE-LCHlch(36.80, 68.07, 323.38°)
OKLaboklab(47.91% 0.1446 -0.1134)
OKLCHoklch(47.91% 0.184 321.9)
XYZxyz(17.0943, 9.4319, 31.0509)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B99 #3A992B
analogous
#532B99 #8A2B99 #992B71
triadic
#8A2B99 #998A2B #2B998A
tetradic
#8A2B99 #99532B #3A992B #2B7199
square
#8A2B99 #99532B #3A992B #2B7199
split-complementary
#8A2B99 #71992B #2B9953
monochromatic
#341039 #5F1E69 #8A2B99 #B43AC8 #C669D5

Accessibility & contrast

On white

7.28
#8A2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2B99
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B99#FFFFFF#000000##FFFFFF
##8A2B991.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#395A96
Tritanopia (blue-blind)
#8C3F5F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2b99;
/* rgb */ color: rgb(138, 43, 153);
/* oklch */ color: oklch(47.9% 0.184 321.9);
Tailwind
colors: {
  custom: {
    50: '#b06eb7',
    500: '#8a2b99',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b99;
$custom-light: #b06eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b99",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 291.818,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47905,
    "c": 0.18376,
    "h": 321.9
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#8A2B99
secondary
#70BC64
accent
#DF485D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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