#8B2A7E#8B2A7E

#8B2A7E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.163 H 333.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8B2A7E
RGBrgb(139, 42, 126)
HSLhsl(308, 54%, 35%)
HSVhsv(308, 70%, 55%)
CMYKcmyk(0%, 69.8%, 9.4%, 45.5%)
CIE-LABlab(35.31, 50.49, -26.36)
CIE-LCHlch(35.31, 56.96, 332.43°)
OKLaboklab(46.37% 0.1461 -0.0721)
OKLCHoklch(46.37% 0.163 333.7)
XYZxyz(15.2414, 8.6525, 20.6020)
Luminance0.0865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A7E #2A8B37
analogous
#672A8B #8B2A7E #8B2A4D
triadic
#8B2A7E #7E8B2A #2A7E8B
tetradic
#8B2A7E #8B672A #2A8B37 #2A4D8B
square
#8B2A7E #8B672A #2A8B37 #2A4D8B
split-complementary
#8B2A7E #4D8B2A #2A8B67
monochromatic
#2D0E29 #5C1C53 #8B2A7E #BA38A9 #CF60C0

Accessibility & contrast

On white

7.69
#8B2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8B2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A7E
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A7E#FFFFFF#000000##FFFFFF
##8B2A7E1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#49587C
Tritanopia (blue-blind)
#913250
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b2a7e;
/* rgb */ color: rgb(139, 42, 126);
/* oklch */ color: oklch(46.4% 0.163 333.7);
Tailwind
colors: {
  custom: {
    50: '#b06ca3',
    500: '#8b2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a7e;
$custom-light: #b06ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a7e",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 308.041,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46369,
    "c": 0.16294,
    "h": 333.7
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#8B2A7E
secondary
#5CB568
accent
#DD5E4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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