#8A258A#8A258A

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

Color values

HEX#8A258A
RGBrgb(138, 37, 138)
HSLhsl(300, 58%, 34%)
HSVhsv(300, 73%, 54%)
CMYKcmyk(0%, 73.2%, 0%, 45.9%)
CIE-LABlab(35.13, 54.14, -34.09)
CIE-LCHlch(35.13, 63.98, 327.80°)
OKLaboklab(46.42% 0.151 -0.0944)
OKLCHoklch(46.42% 0.178 328)
XYZxyz(15.7300, 8.5625, 24.8641)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A258A #258A25
analogous
#58258A #8A258A #8A2558
triadic
#8A258A #8A8A25 #258A8A
tetradic
#8A258A #8A5825 #258A25 #25588A
square
#8A258A #8A5825 #258A25 #25588A
split-complementary
#8A258A #588A25 #258A58
monochromatic
#290B29 #5A185A #8A258A #BA32BA #D257D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A258A#FFFFFF#000000##FFFFFF
##8A258A1.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)
#124A8D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#8E3455
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a258a;
/* rgb */ color: rgb(138, 37, 138);
/* oklch */ color: oklch(46.4% 0.178 328.0);
Tailwind
colors: {
  custom: {
    50: '#af6aac',
    500: '#8a258a',
    950: '#000000',
  },
}
SCSS
$custom: #8a258a;
$custom-light: #af6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a258a",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46418,
    "c": 0.17811,
    "h": 328
  },
  "luminance": 0.08561
}

Semantic roles & 50–950 ramp

primary
#8A258A
secondary
#54B754
accent
#E14747
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A258A

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

Preview Lab → · Contrast checker → · Palette generator →

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