#8A228A#8A228A

#8A228A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.181 H 328.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8A228A
RGBrgb(138, 34, 138)
HSLhsl(300, 60%, 34%)
HSVhsv(300, 75%, 54%)
CMYKcmyk(0%, 75.4%, 0%, 45.9%)
CIE-LABlab(34.77, 55.16, -34.66)
CIE-LCHlch(34.77, 65.15, 327.85°)
OKLaboklab(46.16% 0.1539 -0.0961)
OKLCHoklch(46.16% 0.181 328)
XYZxyz(15.6405, 8.3834, 24.8342)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A228A #228A22
analogous
#56228A #8A228A #8A2256
triadic
#8A228A #8A8A22 #228A8A
tetradic
#8A228A #8A5622 #228A22 #22568A
square
#8A228A #8A5622 #228A22 #22568A
split-complementary
#8A228A #568A22 #228A56
monochromatic
#280A28 #591659 #8A228A #BB2EBB #D452D4

Accessibility & contrast

On white

7.85
#8A228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A228A
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A228A#FFFFFF#000000##FFFFFF
##8A228A1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#3F5687
Tritanopia (blue-blind)
#8E3254
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a228a;
/* rgb */ color: rgb(138, 34, 138);
/* oklch */ color: oklch(46.2% 0.181 328.0);
Tailwind
colors: {
  custom: {
    50: '#b069ac',
    500: '#8a228a',
    950: '#000000',
  },
}
SCSS
$custom: #8a228a;
$custom-light: #b069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a228a",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.18144,
    "h": 328
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#8A228A
secondary
#50B850
accent
#E44444
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A228A

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

Preview Lab → · Contrast checker → · Palette generator →

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