#8A2E92#8A2E92

#8A2E92 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.174 H 324.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A2E92
RGBrgb(138, 46, 146)
HSLhsl(295, 52%, 38%)
HSVhsv(295, 68%, 57%)
CMYKcmyk(5.5%, 68.5%, 0%, 42.7%)
CIE-LABlab(36.81, 52.13, -36.34)
CIE-LCHlch(36.81, 63.55, 325.12°)
OKLaboklab(47.77% 0.1415 -0.101)
OKLCHoklch(47.77% 0.174 324.5)
XYZxyz(16.6461, 9.4336, 28.1326)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E92 #36922E
analogous
#582E92 #8A2E92 #922E68
triadic
#8A2E92 #928A2E #2E928A
tetradic
#8A2E92 #92582E #36922E #2E6892
square
#8A2E92 #92582E #36922E #2E6892
split-complementary
#8A2E92 #68922E #2E9258
monochromatic
#321135 #5E1F63 #8A2E92 #B63DC1 #C86AD0

Accessibility & contrast

On white

7.27
#8A2E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2E92
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E92#FFFFFF#000000##FFFFFF
##8A2E921.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174F95
Deuteranopia (green-blind)
#405A8F
Tritanopia (blue-blind)
#8D3E5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2e92;
/* rgb */ color: rgb(138, 46, 146);
/* oklch */ color: oklch(47.8% 0.174 324.5);
Tailwind
colors: {
  custom: {
    50: '#af6fb2',
    500: '#8a2e92',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e92;
$custom-light: #af6fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e92",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 295.2,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47773,
    "c": 0.17383,
    "h": 324.5
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#8A2E92
secondary
#6BB765
accent
#DC4C58
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E92

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

Preview Lab → · Contrast checker → · Palette generator →

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