#8A227B#8A227B

#8A227B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.170 H 334.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8A227B
RGBrgb(138, 34, 123)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 54%)
CMYKcmyk(0%, 75.4%, 10.9%, 45.9%)
CIE-LABlab(33.94, 52.70, -26.64)
CIE-LCHlch(33.94, 59.05, 333.18°)
OKLaboklab(45.3% 0.1534 -0.0729)
OKLCHoklch(45.3% 0.17 334.6)
XYZxyz(14.6286, 7.9787, 19.5046)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227B #228A31
analogous
#65228A #8A227B #8A2247
triadic
#8A227B #7B8A22 #227B8A
tetradic
#8A227B #8A6522 #228A31 #22478A
square
#8A227B #8A6522 #228A31 #22478A
split-complementary
#8A227B #478A22 #228A65
monochromatic
#280A23 #59164F #8A227B #BB2EA7 #D452C2

Accessibility & contrast

On white

8.09
#8A227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A227B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227B#FFFFFF#000000##FFFFFF
##8A227B1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#912B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a227b;
/* rgb */ color: rgb(138, 34, 123);
/* oklch */ color: oklch(45.3% 0.170 334.6);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8a227b',
    950: '#000000',
  },
}
SCSS
$custom: #8a227b;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227b",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 308.654,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45297,
    "c": 0.16983,
    "h": 334.6
  },
  "luminance": 0.07977
}

Semantic roles & 50–950 ramp

primary
#8A227B
secondary
#50B85F
accent
#E45B44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A227B

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

Preview Lab → · Contrast checker → · Palette generator →

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