#8B228A#8B228A

#8B228A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.182 H 328.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8B228A
RGBrgb(139, 34, 138)
HSLhsl(301, 61%, 34%)
HSVhsv(301, 76%, 55%)
CMYKcmyk(0%, 75.5%, 0.7%, 45.5%)
CIE-LABlab(34.94, 55.39, -34.38)
CIE-LCHlch(34.94, 65.19, 328.17°)
OKLaboklab(46.32% 0.155 -0.0952)
OKLCHoklch(46.32% 0.182 328.4)
XYZxyz(15.8068, 8.4692, 24.8420)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B228A #228B23
analogous
#58228B #8B228A #8B2256
triadic
#8B228A #8A8B22 #228A8B
tetradic
#8B228A #8B5822 #228B23 #22568B
square
#8B228A #8B5822 #228B23 #22568B
split-complementary
#8B228A #568B22 #228B58
monochromatic
#290A28 #5A1659 #8B228A #BC2EBB #D553D4

Accessibility & contrast

On white

7.80
#8B228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B228A
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B228A#FFFFFF#000000##FFFFFF
##8B228A1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#903254
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b228a;
/* rgb */ color: rgb(139, 34, 138);
/* oklch */ color: oklch(46.3% 0.182 328.4);
Tailwind
colors: {
  custom: {
    50: '#b069ac',
    500: '#8b228a',
    950: '#000000',
  },
}
SCSS
$custom: #8b228a;
$custom-light: #b069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b228a",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 300.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46318,
    "c": 0.18193,
    "h": 328.4
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#8B228A
secondary
#50B851
accent
#E44544
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B228A

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

Preview Lab → · Contrast checker → · Palette generator →

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