#8A2E94#8A2E94

#8A2E94 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.176 H 323.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A2E94
RGBrgb(138, 46, 148)
HSLhsl(294, 53%, 38%)
HSVhsv(294, 69%, 58%)
CMYKcmyk(6.8%, 68.9%, 0%, 42%)
CIE-LABlab(36.92, 52.50, -37.37)
CIE-LCHlch(36.92, 64.45, 324.56°)
OKLaboklab(47.89% 0.1415 -0.104)
OKLCHoklch(47.89% 0.176 323.7)
XYZxyz(16.8030, 9.4964, 28.9592)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E94 #38942E
analogous
#572E94 #8A2E94 #942E6B
triadic
#8A2E94 #948A2E #2E948A
tetradic
#8A2E94 #94572E #38942E #2E6B94
square
#8A2E94 #94572E #38942E #2E6B94
split-complementary
#8A2E94 #6B942E #2E9457
monochromatic
#331137 #5E1F65 #8A2E94 #B53DC3 #C76BD1

Accessibility & contrast

On white

7.24
#8A2E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A2E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E94
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E94#FFFFFF#000000##FFFFFF
##8A2E941.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145097
Deuteranopia (green-blind)
#3F5B91
Tritanopia (blue-blind)
#8C3F5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2e94;
/* rgb */ color: rgb(138, 46, 148);
/* oklch */ color: oklch(47.9% 0.176 323.7);
Tailwind
colors: {
  custom: {
    50: '#af6fb4',
    500: '#8a2e94',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e94;
$custom-light: #af6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e94",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 294.118,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47894,
    "c": 0.17559,
    "h": 323.7
  },
  "luminance": 0.09495
}

Semantic roles & 50–950 ramp

primary
#8A2E94
secondary
#6EB866
accent
#DC4C5A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E94

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

Preview Lab → · Contrast checker → · Palette generator →

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