#8A2E9D#8A2E9D

#8A2E9D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.184 H 320.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A2E9D
RGBrgb(138, 46, 157)
HSLhsl(290, 55%, 40%)
HSVhsv(290, 71%, 62%)
CMYKcmyk(12.1%, 70.7%, 0%, 38.4%)
CIE-LABlab(37.47, 54.22, -41.96)
CIE-LCHlch(37.47, 68.56, 322.26°)
OKLaboklab(48.46% 0.1412 -0.1174)
OKLCHoklch(48.46% 0.184 320.2)
XYZxyz(17.5433, 9.7925, 32.8578)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E9D #419D2E
analogous
#532E9D #8A2E9D #9D2E78
triadic
#8A2E9D #9D8A2E #2E9D8A
tetradic
#8A2E9D #9D532E #419D2E #2E789D
square
#8A2E9D #9D532E #419D2E #2E789D
split-complementary
#8A2E9D #789D2E #2E9D53
monochromatic
#37123E #60206E #8A2E9D #B041C7 #C470D5

Accessibility & contrast

On white

7.10
#8A2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E9D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E9D#FFFFFF#000000##FFFFFF
##8A2E9D1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#385B9A
Tritanopia (blue-blind)
#8B4262
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2e9d;
/* rgb */ color: rgb(138, 46, 157);
/* oklch */ color: oklch(48.5% 0.184 320.2);
Tailwind
colors: {
  custom: {
    50: '#b06fba',
    500: '#8a2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e9d;
$custom-light: #b06fba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e9d",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 289.73,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.18366,
    "h": 320.2
  },
  "luminance": 0.09792
}

Semantic roles & 50–950 ramp

primary
#8A2E9D
secondary
#78BD6A
accent
#DE4A63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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