#8A2E8E#8A2E8E

#8A2E8E is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.170 H 326.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8A2E8E
RGBrgb(138, 46, 142)
HSLhsl(298, 51%, 37%)
HSVhsv(298, 68%, 56%)
CMYKcmyk(2.8%, 67.6%, 0%, 44.3%)
CIE-LABlab(36.58, 51.40, -34.26)
CIE-LCHlch(36.58, 61.77, 326.32°)
OKLaboklab(47.53% 0.1414 -0.095)
OKLCHoklch(47.53% 0.17 326.1)
XYZxyz(16.3404, 9.3113, 26.5225)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E8E #328E2E
analogous
#5A2E8E #8A2E8E #8E2E62
triadic
#8A2E8E #8E8A2E #2E8E8A
tetradic
#8A2E8E #8E5A2E #328E2E #2E628E
square
#8A2E8E #8E5A2E #328E2E #2E628E
split-complementary
#8A2E8E #628E2E #2E8E5A
monochromatic
#301032 #5D1F60 #8A2E8E #B73DBC #CA68CE

Accessibility & contrast

On white

7.34
#8A2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E8E
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E8E#FFFFFF#000000##FFFFFF
##8A2E8E1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F91
Deuteranopia (green-blind)
#425A8C
Tritanopia (blue-blind)
#8E3C5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2e8e;
/* rgb */ color: rgb(138, 46, 142);
/* oklch */ color: oklch(47.5% 0.170 326.1);
Tailwind
colors: {
  custom: {
    50: '#af6faf',
    500: '#8a2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e8e;
$custom-light: #af6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e8e",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 297.5,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47533,
    "c": 0.17032,
    "h": 326.1
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#8A2E8E
secondary
#66B563
accent
#DB4D53
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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