#8A229F#8A229F

#8A229F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.199 H 320.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A229F
RGBrgb(138, 34, 159)
HSLhsl(290, 65%, 38%)
HSVhsv(290, 79%, 62%)
CMYKcmyk(13.2%, 78.6%, 0%, 37.6%)
CIE-LABlab(36.08, 58.92, -45.39)
CIE-LCHlch(36.08, 74.38, 322.39°)
OKLaboklab(47.52% 0.1525 -0.1274)
OKLCHoklch(47.52% 0.199 320.1)
XYZxyz(17.3105, 9.0514, 33.6295)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A229F #379F22
analogous
#4B229F #8A229F #9F2275
triadic
#8A229F #9F8A22 #229F8A
tetradic
#8A229F #9F4B22 #379F22 #22759F
square
#8A229F #9F4B22 #379F22 #22759F
split-complementary
#8A229F #759F22 #229F4B
monochromatic
#320C3A #5E176D #8A229F #B62DD1 #C85FDD

Accessibility & contrast

On white

7.47
#8A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A229F
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A229F#FFFFFF#000000##FFFFFF
##8A229F1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#2F589C
Tritanopia (blue-blind)
#8A3D60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a229f;
/* rgb */ color: rgb(138, 34, 159);
/* oklch */ color: oklch(47.5% 0.199 320.1);
Tailwind
colors: {
  custom: {
    50: '#b06abc',
    500: '#8a229f',
    950: '#000000',
  },
}
SCSS
$custom: #8a229f;
$custom-light: #b06abc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a229f",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 289.92,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47516,
    "c": 0.1987,
    "h": 320.1
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#8A229F
secondary
#6DC15B
accent
#E8405C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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