#8A2A7E#8A2A7E

#8A2A7E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.162 H 333.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8A2A7E
RGBrgb(138, 42, 126)
HSLhsl(308, 53%, 35%)
HSVhsv(308, 70%, 54%)
CMYKcmyk(0%, 69.6%, 8.7%, 45.9%)
CIE-LABlab(35.14, 50.24, -26.64)
CIE-LCHlch(35.14, 56.86, 332.06°)
OKLaboklab(46.21% 0.145 -0.0729)
OKLCHoklch(46.21% 0.162 333.3)
XYZxyz(15.0752, 8.5668, 20.5942)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A7E #2A8A36
analogous
#662A8A #8A2A7E #8A2A4E
triadic
#8A2A7E #7E8A2A #2A7E8A
tetradic
#8A2A7E #8A662A #2A8A36 #2A4E8A
square
#8A2A7E #8A662A #2A8A36 #2A4E8A
split-complementary
#8A2A7E #4E8A2A #2A8A66
monochromatic
#2C0D28 #5B1C53 #8A2A7E #B938A9 #CF60C1

Accessibility & contrast

On white

7.74
#8A2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A7E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A7E#FFFFFF#000000##FFFFFF
##8A2A7E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2a7e;
/* rgb */ color: rgb(138, 42, 126);
/* oklch */ color: oklch(46.2% 0.162 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6ca3',
    500: '#8a2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a7e;
$custom-light: #af6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a7e",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 307.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46212,
    "c": 0.16233,
    "h": 333.3
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#8A2A7E
secondary
#5BB467
accent
#DD5D4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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