#8A227A#8A227A

#8A227A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.169 H 335.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8A227A
RGBrgb(138, 34, 122)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 54%)
CMYKcmyk(0%, 75.4%, 11.6%, 45.9%)
CIE-LABlab(33.89, 52.54, -26.10)
CIE-LCHlch(33.89, 58.67, 333.59°)
OKLaboklab(45.24% 0.1533 -0.0713)
OKLCHoklch(45.24% 0.169 335.1)
XYZxyz(14.5663, 7.9538, 19.1767)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227A #228A32
analogous
#66228A #8A227A #8A2246
triadic
#8A227A #7A8A22 #227A8A
tetradic
#8A227A #8A6622 #228A32 #22468A
square
#8A227A #8A6622 #228A32 #22468A
split-complementary
#8A227A #468A22 #228A66
monochromatic
#280A23 #59164F #8A227A #BB2EA5 #D452C0

Accessibility & contrast

On white

8.11
#8A227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A227A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227A#FFFFFF#000000##FFFFFF
##8A227A1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#475578
Tritanopia (blue-blind)
#912B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a227a;
/* rgb */ color: rgb(138, 34, 122);
/* oklch */ color: oklch(45.2% 0.169 335.1);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8a227a',
    950: '#000000',
  },
}
SCSS
$custom: #8a227a;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227a",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 309.231,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.16909,
    "h": 335.1
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#8A227A
secondary
#50B860
accent
#E45D44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A227A

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

Preview Lab → · Contrast checker → · Palette generator →

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