#8A228C#8A228C

#8A228C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.183 H 327.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8A228C
RGBrgb(138, 34, 140)
HSLhsl(299, 61%, 34%)
HSVhsv(299, 76%, 55%)
CMYKcmyk(1.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(34.89, 55.50, -35.71)
CIE-LCHlch(34.89, 66.00, 327.24°)
OKLaboklab(46.28% 0.1539 -0.0991)
OKLCHoklch(46.28% 0.183 327.2)
XYZxyz(15.7866, 8.4419, 25.6038)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A228C #248C22
analogous
#55228C #8A228C #8C2259
triadic
#8A228C #8C8A22 #228C8A
tetradic
#8A228C #8C5522 #248C22 #22598C
square
#8A228C #8C5522 #248C22 #22598C
split-complementary
#8A228C #598C22 #228C55
monochromatic
#290A2A #59165B #8A228C #BB2EBD #D353D5

Accessibility & contrast

On white

7.81
#8A228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A228C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A228C#FFFFFF#000000##FFFFFF
##8A228C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A8F
Deuteranopia (green-blind)
#3D5789
Tritanopia (blue-blind)
#8E3356
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a228c;
/* rgb */ color: rgb(138, 34, 140);
/* oklch */ color: oklch(46.3% 0.183 327.2);
Tailwind
colors: {
  custom: {
    50: '#b069ae',
    500: '#8a228c',
    950: '#000000',
  },
}
SCSS
$custom: #8a228c;
$custom-light: #b069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a228c",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 298.868,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46283,
    "c": 0.18304,
    "h": 327.2
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#8A228C
secondary
#53B951
accent
#E44447
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A228C

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

Preview Lab → · Contrast checker → · Palette generator →

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