#8A227E#8A227E

#8A227E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.172 H 333.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8A227E
RGBrgb(138, 34, 126)
HSLhsl(307, 60%, 34%)
HSVhsv(307, 75%, 54%)
CMYKcmyk(0%, 75.4%, 8.7%, 45.9%)
CIE-LABlab(34.10, 53.18, -28.27)
CIE-LCHlch(34.10, 60.22, 332.00°)
OKLaboklab(45.46% 0.1536 -0.0776)
OKLCHoklch(45.46% 0.172 333.2)
XYZxyz(14.8192, 8.0549, 20.5089)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227E #228A2E
analogous
#62228A #8A227E #8A224A
triadic
#8A227E #7E8A22 #227E8A
tetradic
#8A227E #8A6222 #228A2E #224A8A
square
#8A227E #8A6222 #228A2E #224A8A
split-complementary
#8A227E #4A8A22 #228A62
monochromatic
#280A24 #591651 #8A227E #BB2EAB #D452C5

Accessibility & contrast

On white

8.04
#8A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A227E
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227E#FFFFFF#000000##FFFFFF
##8A227E1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4781
Deuteranopia (green-blind)
#45557C
Tritanopia (blue-blind)
#902D4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a227e;
/* rgb */ color: rgb(138, 34, 126);
/* oklch */ color: oklch(45.5% 0.172 333.2);
Tailwind
colors: {
  custom: {
    50: '#b069a4',
    500: '#8a227e',
    950: '#000000',
  },
}
SCSS
$custom: #8a227e;
$custom-light: #b069a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227e",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 306.923,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45462,
    "c": 0.17209,
    "h": 333.2
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#8A227E
secondary
#50B85C
accent
#E45744
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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