#8A228B#8A228B

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

Color values

HEX#8A228B
RGBrgb(138, 34, 139)
HSLhsl(299, 61%, 34%)
HSVhsv(299, 76%, 55%)
CMYKcmyk(0.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(34.83, 55.33, -35.19)
CIE-LCHlch(34.83, 65.57, 327.55°)
OKLaboklab(46.22% 0.1539 -0.0976)
OKLCHoklch(46.22% 0.182 327.6)
XYZxyz(15.7132, 8.4125, 25.2173)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A228B #238B22
analogous
#56228B #8A228B #8B2258
triadic
#8A228B #8B8A22 #228B8A
tetradic
#8A228B #8B5622 #238B22 #22588B
square
#8A228B #8B5622 #238B22 #22588B
split-complementary
#8A228B #588B22 #228B56
monochromatic
#280A29 #59165A #8A228B #BB2EBC #D453D5

Accessibility & contrast

On white

7.83
#8A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A228B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A228B#FFFFFF#000000##FFFFFF
##8A228B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#3E5788
Tritanopia (blue-blind)
#8E3355
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a228b;
/* rgb */ color: rgb(138, 34, 139);
/* oklch */ color: oklch(46.2% 0.182 327.6);
Tailwind
colors: {
  custom: {
    50: '#b069ad',
    500: '#8a228b',
    950: '#000000',
  },
}
SCSS
$custom: #8a228b;
$custom-light: #b069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a228b",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 299.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46222,
    "c": 0.18224,
    "h": 327.6
  },
  "luminance": 0.08411
}

Semantic roles & 50–950 ramp

primary
#8A228B
secondary
#51B850
accent
#E44445
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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