#8A229C#8A229C

#8A229C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.196 H 321.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#8A229C
RGBrgb(138, 34, 156)
HSLhsl(291, 64%, 37%)
HSVhsv(291, 78%, 61%)
CMYKcmyk(11.5%, 78.2%, 0%, 38.8%)
CIE-LABlab(35.89, 58.36, -43.89)
CIE-LCHlch(35.89, 73.03, 323.05°)
OKLaboklab(47.31% 0.1528 -0.123)
OKLCHoklch(47.31% 0.196 321.2)
XYZxyz(17.0533, 8.9486, 32.2750)
Luminance0.0895 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A229C #349C22
analogous
#4D229C #8A229C #9C2271
triadic
#8A229C #9C8A22 #229C8A
tetradic
#8A229C #9C4D22 #349C22 #22719C
square
#8A229C #9C4D22 #349C22 #22719C
split-complementary
#8A229C #719C22 #229C4D
monochromatic
#310C38 #5E176A #8A229C #B62DCE #C95DDC

Accessibility & contrast

On white

7.53
#8A229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A229C
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A229C#FFFFFF#000000##FFFFFF
##8A229C1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#325899
Tritanopia (blue-blind)
#8B3B5F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a229c;
/* rgb */ color: rgb(138, 34, 156);
/* oklch */ color: oklch(47.3% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#b06aba',
    500: '#8a229c',
    950: '#000000',
  },
}
SCSS
$custom: #8a229c;
$custom-light: #b06aba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a229c",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 291.148,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47313,
    "c": 0.19619,
    "h": 321.2
  },
  "luminance": 0.08948
}

Semantic roles & 50–950 ramp

primary
#8A229C
secondary
#69C05A
accent
#E74159
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A229C

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

Preview Lab → · Contrast checker → · Palette generator →

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