#8A229D#8A229D

#8A229D is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 320.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8A229D
RGBrgb(138, 34, 157)
HSLhsl(291, 64%, 37%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(12.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(35.95, 58.55, -44.40)
CIE-LCHlch(35.95, 73.48, 322.83°)
OKLaboklab(47.38% 0.1527 -0.1245)
OKLCHoklch(47.38% 0.197 320.8)
XYZxyz(17.1384, 8.9826, 32.7228)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A229D #359D22
analogous
#4D229D #8A229D #9D2272
triadic
#8A229D #9D8A22 #229D8A
tetradic
#8A229D #9D4D22 #359D22 #22729D
square
#8A229D #9D4D22 #359D22 #22729D
split-complementary
#8A229D #729D22 #229D4D
monochromatic
#320C38 #5E176B #8A229D #B62DCF #C85DDC

Accessibility & contrast

On white

7.51
#8A229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A229D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A229D#FFFFFF#000000##FFFFFF
##8A229D1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#31589A
Tritanopia (blue-blind)
#8B3C5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a229d;
/* rgb */ color: rgb(138, 34, 157);
/* oklch */ color: oklch(47.4% 0.197 320.8);
Tailwind
colors: {
  custom: {
    50: '#b06aba',
    500: '#8a229d',
    950: '#000000',
  },
}
SCSS
$custom: #8a229d;
$custom-light: #b06aba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a229d",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 290.732,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.19703,
    "h": 320.8
  },
  "luminance": 0.08982
}

Semantic roles & 50–950 ramp

primary
#8A229D
secondary
#6AC15A
accent
#E7405A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A229D

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

Preview Lab → · Contrast checker → · Palette generator →

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