#8B228E#8B228E

#8B228E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.185 H 326.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8B228E
RGBrgb(139, 34, 142)
HSLhsl(298, 61%, 35%)
HSVhsv(298, 76%, 56%)
CMYKcmyk(2.1%, 76.1%, 0%, 44.3%)
CIE-LABlab(35.18, 56.07, -36.47)
CIE-LCHlch(35.18, 66.89, 326.96°)
OKLaboklab(46.56% 0.155 -0.1013)
OKLCHoklch(46.56% 0.185 326.8)
XYZxyz(16.1017, 8.5871, 26.3953)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B228E #258E22
analogous
#55228E #8B228E #8E225B
triadic
#8B228E #8E8B22 #228E8B
tetradic
#8B228E #8E5522 #258E22 #225B8E
square
#8B228E #8E5522 #258E22 #225B8E
split-complementary
#8B228E #5B8E22 #228E55
monochromatic
#2A0A2B #5B165D #8B228E #BB2EBF #D354D6

Accessibility & contrast

On white

7.73
#8B228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8B228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B228E
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B228E#FFFFFF#000000##FFFFFF
##8B228E1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#8F3457
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b228e;
/* rgb */ color: rgb(139, 34, 142);
/* oklch */ color: oklch(46.6% 0.185 326.8);
Tailwind
colors: {
  custom: {
    50: '#b069af',
    500: '#8b228e',
    950: '#000000',
  },
}
SCSS
$custom: #8b228e;
$custom-light: #b069af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b228e",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 298.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46562,
    "c": 0.18513,
    "h": 326.8
  },
  "luminance": 0.08586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B228E

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

Preview Lab → · Contrast checker → · Palette generator →

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