#8A228F#8A228F

#8A228F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.185 H 326.0°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8A228F
RGBrgb(138, 34, 143)
HSLhsl(297, 62%, 35%)
HSVhsv(297, 76%, 56%)
CMYKcmyk(3.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(35.07, 56.03, -37.27)
CIE-LCHlch(35.07, 67.29, 326.37°)
OKLaboklab(46.47% 0.1538 -0.1036)
OKLCHoklch(46.47% 0.185 326)
XYZxyz(16.0109, 8.5316, 26.7847)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A228F #278F22
analogous
#54228F #8A228F #8F225D
triadic
#8A228F #8F8A22 #228F8A
tetradic
#8A228F #8F5422 #278F22 #225D8F
square
#8A228F #8F5422 #278F22 #225D8F
split-complementary
#8A228F #5D8F22 #228F54
monochromatic
#2B0A2C #5A165E #8A228F #BA2EC0 #D155D7

Accessibility & contrast

On white

7.76
#8A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A228F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A228F#FFFFFF#000000##FFFFFF
##8A228F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#8E3557
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a228f;
/* rgb */ color: rgb(138, 34, 143);
/* oklch */ color: oklch(46.5% 0.185 326.0);
Tailwind
colors: {
  custom: {
    50: '#b069b0',
    500: '#8a228f',
    950: '#000000',
  },
}
SCSS
$custom: #8a228f;
$custom-light: #b069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a228f",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 297.248,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46469,
    "c": 0.18547,
    "h": 326
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#8A228F
secondary
#57BA52
accent
#E5434B
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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