#8A248A#8A248A

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

Color values

HEX#8A248A
RGBrgb(138, 36, 138)
HSLhsl(300, 59%, 34%)
HSVhsv(300, 74%, 54%)
CMYKcmyk(0%, 73.9%, 0%, 45.9%)
CIE-LABlab(35.01, 54.49, -34.29)
CIE-LCHlch(35.01, 64.38, 327.82°)
OKLaboklab(46.33% 0.152 -0.095)
OKLCHoklch(46.33% 0.179 328)
XYZxyz(15.6994, 8.5011, 24.8538)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A248A #248A24
analogous
#57248A #8A248A #8A2457
triadic
#8A248A #8A8A24 #248A8A
tetradic
#8A248A #8A5724 #248A24 #24578A
square
#8A248A #8A5724 #248A24 #24578A
split-complementary
#8A248A #578A24 #248A57
monochromatic
#290B29 #591759 #8A248A #BB31BB #D356D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A248A#FFFFFF#000000##FFFFFF
##8A248A1.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)
#104A8D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#8E3455
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a248a;
/* rgb */ color: rgb(138, 36, 138);
/* oklch */ color: oklch(46.3% 0.179 328.0);
Tailwind
colors: {
  custom: {
    50: '#b06aac',
    500: '#8a248a',
    950: '#000000',
  },
}
SCSS
$custom: #8a248a;
$custom-light: #b06aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a248a",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46331,
    "c": 0.17925,
    "h": 328
  },
  "luminance": 0.085
}

Semantic roles & 50–950 ramp

primary
#8A248A
secondary
#53B753
accent
#E24646
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A248A

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

Preview Lab → · Contrast checker → · Palette generator →

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