#8A2A8E#8A2A8E

#8A2A8E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.175 H 326.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8A2A8E
RGBrgb(138, 42, 142)
HSLhsl(298, 54%, 36%)
HSVhsv(298, 70%, 56%)
CMYKcmyk(2.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(36.01, 52.99, -35.16)
CIE-LCHlch(36.01, 63.59, 326.44°)
OKLaboklab(47.13% 0.1459 -0.0975)
OKLCHoklch(47.13% 0.175 326.2)
XYZxyz(16.1914, 9.0133, 26.4729)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A8E #2E8E2A
analogous
#582A8E #8A2A8E #8E2A60
triadic
#8A2A8E #8E8A2A #2A8E8A
tetradic
#8A2A8E #8E582A #2E8E2A #2A608E
square
#8A2A8E #8E582A #2E8E2A #2A608E
split-complementary
#8A2A8E #608E2A #2A8E58
monochromatic
#2E0E30 #5C1C5F #8A2A8E #B838BD #CC62D1

Accessibility & contrast

On white

7.49
#8A2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A8E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A8E#FFFFFF#000000##FFFFFF
##8A2A8E1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D91
Deuteranopia (green-blind)
#40598B
Tritanopia (blue-blind)
#8E3959
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2a8e;
/* rgb */ color: rgb(138, 42, 142);
/* oklch */ color: oklch(47.1% 0.175 326.2);
Tailwind
colors: {
  custom: {
    50: '#af6daf',
    500: '#8a2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a8e;
$custom-light: #af6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a8e",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 297.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47125,
    "c": 0.17547,
    "h": 326.2
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#8A2A8E
secondary
#61B65D
accent
#DE4A50
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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