#8A248D#8A248D

#8A248D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.182 H 326.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8A248D
RGBrgb(138, 36, 141)
HSLhsl(298, 59%, 35%)
HSVhsv(298, 74%, 55%)
CMYKcmyk(2.1%, 74.5%, 0%, 44.7%)
CIE-LABlab(35.18, 55.01, -35.86)
CIE-LCHlch(35.18, 65.66, 326.90°)
OKLaboklab(46.51% 0.152 -0.0995)
OKLCHoklch(46.51% 0.182 326.8)
XYZxyz(15.9196, 8.5892, 26.0135)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A248D #278D24
analogous
#56248D #8A248D #8D245B
triadic
#8A248D #8D8A24 #248D8A
tetradic
#8A248D #8D5624 #278D24 #245B8D
square
#8A248D #8D5624 #278D24 #245B8D
split-complementary
#8A248D #5B8D24 #248D56
monochromatic
#2B0B2B #5A185C #8A248D #BA30BE #D157D4

Accessibility & contrast

On white

7.73
#8A248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A248D
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A248D#FFFFFF#000000##FFFFFF
##8A248D1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#8E3557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a248d;
/* rgb */ color: rgb(138, 36, 141);
/* oklch */ color: oklch(46.5% 0.182 326.8);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8a248d',
    950: '#000000',
  },
}
SCSS
$custom: #8a248d;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a248d",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 298.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46513,
    "c": 0.18168,
    "h": 326.8
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#8A248D
secondary
#57B854
accent
#E3454A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A248D

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

Preview Lab → · Contrast checker → · Palette generator →

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