#8A2E98#8A2E98

#8A2E98 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.179 H 322.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8A2E98
RGBrgb(138, 46, 152)
HSLhsl(292, 54%, 39%)
HSVhsv(292, 70%, 60%)
CMYKcmyk(9.2%, 69.7%, 0%, 40.4%)
CIE-LABlab(37.16, 53.26, -39.43)
CIE-LCHlch(37.16, 66.26, 323.49°)
OKLaboklab(48.14% 0.1414 -0.11)
OKLCHoklch(48.14% 0.179 322.1)
XYZxyz(17.1251, 9.6252, 30.6555)
Luminance0.0962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E98 #3C982E
analogous
#552E98 #8A2E98 #982E71
triadic
#8A2E98 #988A2E #2E988A
tetradic
#8A2E98 #98552E #3C982E #2E7198
square
#8A2E98 #98552E #3C982E #2E7198
split-complementary
#8A2E98 #71982E #2E9855
monochromatic
#35123A #5F2069 #8A2E98 #B33EC5 #C66DD3

Accessibility & contrast

On white

7.18
#8A2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E98
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E98#FFFFFF#000000##FFFFFF
##8A2E981.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A519B
Deuteranopia (green-blind)
#3C5B95
Tritanopia (blue-blind)
#8C405F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2e98;
/* rgb */ color: rgb(138, 46, 152);
/* oklch */ color: oklch(48.1% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#af6fb7',
    500: '#8a2e98',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e98;
$custom-light: #af6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e98",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 292.075,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48142,
    "c": 0.17915,
    "h": 322.1
  },
  "luminance": 0.09624
}

Semantic roles & 50–950 ramp

primary
#8A2E98
secondary
#73BA68
accent
#DD4B5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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