#8A227D#8A227D

#8A227D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.171 H 333.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8A227D
RGBrgb(138, 34, 125)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 54%)
CMYKcmyk(0%, 75.4%, 9.4%, 45.9%)
CIE-LABlab(34.04, 53.02, -27.73)
CIE-LCHlch(34.04, 59.83, 332.39°)
OKLaboklab(45.41% 0.1536 -0.076)
OKLCHoklch(45.41% 0.171 333.7)
XYZxyz(14.7550, 8.0293, 20.1708)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227D #228A2F
analogous
#63228A #8A227D #8A2249
triadic
#8A227D #7D8A22 #227D8A
tetradic
#8A227D #8A6322 #228A2F #22498A
square
#8A227D #8A6322 #228A2F #22498A
split-complementary
#8A227D #498A22 #228A63
monochromatic
#280A24 #591651 #8A227D #BB2EA9 #D452C4

Accessibility & contrast

On white

8.06
#8A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A227D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227D#FFFFFF#000000##FFFFFF
##8A227D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467F
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#912C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a227d;
/* rgb */ color: rgb(138, 34, 125);
/* oklch */ color: oklch(45.4% 0.171 333.7);
Tailwind
colors: {
  custom: {
    50: '#b069a3',
    500: '#8a227d',
    950: '#000000',
  },
}
SCSS
$custom: #8a227d;
$custom-light: #b069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227d",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 307.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45407,
    "c": 0.17133,
    "h": 333.7
  },
  "luminance": 0.08028
}

Semantic roles & 50–950 ramp

primary
#8A227D
secondary
#50B85D
accent
#E45844
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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