#8C228F#8C228F

#8C228F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.186 H 326.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8C228F
RGBrgb(140, 34, 143)
HSLhsl(298, 62%, 35%)
HSVhsv(298, 76%, 56%)
CMYKcmyk(2.1%, 76.2%, 0%, 43.9%)
CIE-LABlab(35.41, 56.46, -36.71)
CIE-LCHlch(35.41, 67.34, 326.97°)
OKLaboklab(46.78% 0.1561 -0.1019)
OKLCHoklch(46.78% 0.186 326.8)
XYZxyz(16.3449, 8.7038, 26.8004)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C228F #258F22
analogous
#56228F #8C228F #8F225B
triadic
#8C228F #8F8C22 #228F8C
tetradic
#8C228F #8F5622 #258F22 #225B8F
square
#8C228F #8F5622 #258F22 #225B8F
split-complementary
#8C228F #5B8F22 #228F56
monochromatic
#2B0A2C #5C165E #8C228F #BC2EC0 #D355D7

Accessibility & contrast

On white

7.66
#8C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8C228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C228F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C228F#FFFFFF#000000##FFFFFF
##8C228F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#903457
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c228f;
/* rgb */ color: rgb(140, 34, 143);
/* oklch */ color: oklch(46.8% 0.186 326.8);
Tailwind
colors: {
  custom: {
    50: '#b16ab0',
    500: '#8c228f',
    950: '#000000',
  },
}
SCSS
$custom: #8c228f;
$custom-light: #b16ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c228f",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 298.349,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.18641,
    "h": 326.8
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#8C228F
secondary
#55BA52
accent
#E54348
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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