#8A229E#8A229E

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

Color values

HEX#8A229E
RGBrgb(138, 34, 158)
HSLhsl(290, 65%, 38%)
HSVhsv(290, 78%, 62%)
CMYKcmyk(12.7%, 78.5%, 0%, 38%)
CIE-LABlab(36.02, 58.73, -44.89)
CIE-LCHlch(36.02, 73.93, 322.61°)
OKLaboklab(47.45% 0.1526 -0.1259)
OKLCHoklch(47.45% 0.198 320.5)
XYZxyz(17.2241, 9.0169, 33.1743)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A229E #369E22
analogous
#4C229E #8A229E #9E2274
triadic
#8A229E #9E8A22 #229E8A
tetradic
#8A229E #9E4C22 #369E22 #22749E
square
#8A229E #9E4C22 #369E22 #22749E
split-complementary
#8A229E #749E22 #229E4C
monochromatic
#320C39 #5E176C #8A229E #B62DD0 #C85EDC

Accessibility & contrast

On white

7.49
#8A229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A229E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A229E#FFFFFF#000000##FFFFFF
##8A229E1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#30589B
Tritanopia (blue-blind)
#8B3C60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a229e;
/* rgb */ color: rgb(138, 34, 158);
/* oklch */ color: oklch(47.4% 0.198 320.5);
Tailwind
colors: {
  custom: {
    50: '#b06abb',
    500: '#8a229e',
    950: '#000000',
  },
}
SCSS
$custom: #8a229e;
$custom-light: #b06abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a229e",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 290.323,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47448,
    "c": 0.19786,
    "h": 320.5
  },
  "luminance": 0.09016
}

Semantic roles & 50–950 ramp

primary
#8A229E
secondary
#6BC15B
accent
#E8405B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A229E

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

Preview Lab → · Contrast checker → · Palette generator →

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