#8A227F#8A227F

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

Color values

HEX#8A227F
RGBrgb(138, 34, 127)
HSLhsl(306, 60%, 34%)
HSVhsv(306, 75%, 54%)
CMYKcmyk(0%, 75.4%, 8%, 45.9%)
CIE-LABlab(34.15, 53.34, -28.81)
CIE-LCHlch(34.15, 60.62, 331.62°)
OKLaboklab(45.52% 0.1537 -0.0791)
OKLCHoklch(45.52% 0.173 332.8)
XYZxyz(14.8841, 8.0809, 20.8504)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A227F #228A2D
analogous
#61228A #8A227F #8A224B
triadic
#8A227F #7F8A22 #227F8A
tetradic
#8A227F #8A6122 #228A2D #224B8A
square
#8A227F #8A6122 #228A2D #224B8A
split-complementary
#8A227F #4B8A22 #228A61
monochromatic
#280A25 #591652 #8A227F #BB2EAC #D452C7

Accessibility & contrast

On white

8.03
#8A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A227F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A227F#FFFFFF#000000##FFFFFF
##8A227F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a227f;
/* rgb */ color: rgb(138, 34, 127);
/* oklch */ color: oklch(45.5% 0.173 332.8);
Tailwind
colors: {
  custom: {
    50: '#b069a4',
    500: '#8a227f',
    950: '#000000',
  },
}
SCSS
$custom: #8a227f;
$custom-light: #b069a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a227f",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 306.346,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.17285,
    "h": 332.8
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#8A227F
secondary
#50B85B
accent
#E45544
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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