#8A2A98#8A2A98

#8A2A98 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.184 H 322.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A2A98
RGBrgb(138, 42, 152)
HSLhsl(292, 57%, 38%)
HSVhsv(292, 72%, 60%)
CMYKcmyk(9.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(36.61, 54.83, -40.31)
CIE-LCHlch(36.61, 68.05, 323.68°)
OKLaboklab(47.75% 0.1456 -0.1126)
OKLCHoklch(47.75% 0.184 322.3)
XYZxyz(16.9761, 9.3272, 30.6058)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A98 #38982A
analogous
#532A98 #8A2A98 #982A6F
triadic
#8A2A98 #988A2A #2A988A
tetradic
#8A2A98 #98532A #38982A #2A6F98
square
#8A2A98 #98532A #38982A #2A6F98
split-complementary
#8A2A98 #6F982A #2A9853
monochromatic
#331038 #5E1D68 #8A2A98 #B537C8 #C767D5

Accessibility & contrast

On white

7.33
#8A2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A98
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A98#FFFFFF#000000##FFFFFF
##8A2A981.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#8C3E5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a98;
/* rgb */ color: rgb(138, 42, 152);
/* oklch */ color: oklch(47.7% 0.184 322.3);
Tailwind
colors: {
  custom: {
    50: '#b06db7',
    500: '#8a2a98',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a98;
$custom-light: #b06db7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a98",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 292.364,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47745,
    "c": 0.18408,
    "h": 322.3
  },
  "luminance": 0.09326
}

Semantic roles & 50–950 ramp

primary
#8A2A98
secondary
#6EBB62
accent
#E0485B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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