#8A228D#8A228D

#8A228D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.184 H 326.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8A228D
RGBrgb(138, 34, 141)
HSLhsl(298, 61%, 34%)
HSVhsv(298, 76%, 55%)
CMYKcmyk(2.1%, 75.9%, 0%, 44.7%)
CIE-LABlab(34.95, 55.68, -36.23)
CIE-LCHlch(34.95, 66.43, 326.95°)
OKLaboklab(46.35% 0.1539 -0.1006)
OKLCHoklch(46.35% 0.184 326.8)
XYZxyz(15.8607, 8.4715, 25.9939)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A228D #258D22
analogous
#55228D #8A228D #8D225B
triadic
#8A228D #8D8A22 #228D8A
tetradic
#8A228D #8D5522 #258D22 #225B8D
square
#8A228D #8D5522 #258D22 #225B8D
split-complementary
#8A228D #5B8D22 #228D55
monochromatic
#290A2A #5A165C #8A228D #BA2EBE #D254D6

Accessibility & contrast

On white

7.80
#8A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A228D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A228D#FFFFFF#000000##FFFFFF
##8A228D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#3D578A
Tritanopia (blue-blind)
#8E3456
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a228d;
/* rgb */ color: rgb(138, 34, 141);
/* oklch */ color: oklch(46.3% 0.184 326.8);
Tailwind
colors: {
  custom: {
    50: '#b069af',
    500: '#8a228d',
    950: '#000000',
  },
}
SCSS
$custom: #8a228d;
$custom-light: #b069af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a228d",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 298.318,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46345,
    "c": 0.18385,
    "h": 326.8
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#8A228D
secondary
#54B951
accent
#E44448
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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