#8A227C#8A227C

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

Color values

HEX#8A227C
RGBrgb(138, 34, 124)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 54%)
CMYKcmyk(0%, 75.4%, 10.1%, 45.9%)
CIE-LABlab(33.99, 52.86, -27.19)
CIE-LCHlch(33.99, 59.44, 332.78°)
OKLaboklab(45.35% 0.1535 -0.0744)
OKLCHoklch(45.35% 0.171 334.1)
XYZxyz(14.6915, 8.0038, 19.8360)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227C #228A30
analogous
#64228A #8A227C #8A2248
triadic
#8A227C #7C8A22 #227C8A
tetradic
#8A227C #8A6422 #228A30 #22488A
square
#8A227C #8A6422 #228A30 #22488A
split-complementary
#8A227C #488A22 #228A64
monochromatic
#280A24 #591650 #8A227C #BB2EA8 #D452C3

Accessibility & contrast

On white

8.08
#8A227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A227C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227C#FFFFFF#000000##FFFFFF
##8A227C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467E
Deuteranopia (green-blind)
#46557A
Tritanopia (blue-blind)
#912C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a227c;
/* rgb */ color: rgb(138, 34, 124);
/* oklch */ color: oklch(45.4% 0.171 334.1);
Tailwind
colors: {
  custom: {
    50: '#b068a2',
    500: '#8a227c',
    950: '#000000',
  },
}
SCSS
$custom: #8a227c;
$custom-light: #b068a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227c",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 308.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45352,
    "c": 0.17058,
    "h": 334.1
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#8A227C
secondary
#50B85E
accent
#E45A44
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A227C

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

Preview Lab → · Contrast checker → · Palette generator →

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