#8A2A7B#8A2A7B

#8A2A7B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.160 H 334.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8A2A7B
RGBrgb(138, 42, 123)
HSLhsl(309, 53%, 35%)
HSVhsv(309, 70%, 54%)
CMYKcmyk(0%, 69.6%, 10.9%, 45.9%)
CIE-LABlab(34.98, 49.75, -25.00)
CIE-LCHlch(34.98, 55.68, 333.32°)
OKLaboklab(46.05% 0.1447 -0.0682)
OKLCHoklch(46.05% 0.16 334.8)
XYZxyz(14.8845, 8.4905, 19.5900)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A7B #2A8A39
analogous
#692A8A #8A2A7B #8A2A4B
triadic
#8A2A7B #7B8A2A #2A7B8A
tetradic
#8A2A7B #8A692A #2A8A39 #2A4B8A
square
#8A2A7B #8A692A #2A8A39 #2A4B8A
split-complementary
#8A2A7B #4B8A2A #2A8A69
monochromatic
#2C0D27 #5B1C51 #8A2A7B #B938A5 #CF60BD

Accessibility & contrast

On white

7.78
#8A2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A7B
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A7B#FFFFFF#000000##FFFFFF
##8A2A7B1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497D
Deuteranopia (green-blind)
#4A5779
Tritanopia (blue-blind)
#91314F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2a7b;
/* rgb */ color: rgb(138, 42, 123);
/* oklch */ color: oklch(46.1% 0.160 334.8);
Tailwind
colors: {
  custom: {
    50: '#af6ca1',
    500: '#8a2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a7b;
$custom-light: #af6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a7b",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 309.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.15997,
    "h": 334.8
  },
  "luminance": 0.08489
}

Semantic roles & 50–950 ramp

primary
#8A2A7B
secondary
#5BB469
accent
#DD624B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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