#8A2B8B#8A2B8B

#8A2B8B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.172 H 327.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8A2B8B
RGBrgb(138, 43, 139)
HSLhsl(299, 53%, 36%)
HSVhsv(299, 69%, 55%)
CMYKcmyk(0.7%, 69.1%, 0%, 45.5%)
CIE-LABlab(35.98, 52.07, -33.36)
CIE-LCHlch(35.98, 61.84, 327.35°)
OKLaboklab(47.05% 0.1447 -0.0924)
OKLCHoklch(47.05% 0.172 327.5)
XYZxyz(16.0051, 8.9962, 25.3145)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B8B #2C8B2B
analogous
#5A2B8B #8A2B8B #8B2B5C
triadic
#8A2B8B #8B8A2B #2B8B8A
tetradic
#8A2B8B #8B5A2B #2C8B2B #2B5C8B
square
#8A2B8B #8B5A2B #2C8B2B #2B5C8B
split-complementary
#8A2B8B #5C8B2B #2B8B5A
monochromatic
#2D0E2E #5C1D5C #8A2B8B #B839BA #CD62CE

Accessibility & contrast

On white

7.50
#8A2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B8B
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B8B#FFFFFF#000000##FFFFFF
##8A2B8B1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8E
Deuteranopia (green-blind)
#425989
Tritanopia (blue-blind)
#8E3957
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2b8b;
/* rgb */ color: rgb(138, 43, 139);
/* oklch */ color: oklch(47.0% 0.172 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6dad',
    500: '#8a2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b8b;
$custom-light: #af6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b8b",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 299.375,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.17166,
    "h": 327.5
  },
  "luminance": 0.08995
}

Semantic roles & 50–950 ramp

primary
#8A2B8B
secondary
#5EB55D
accent
#DC4C4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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