#8A248B#8A248B

#8A248B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.180 H 327.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8A248B
RGBrgb(138, 36, 139)
HSLhsl(299, 59%, 34%)
HSVhsv(299, 74%, 55%)
CMYKcmyk(0.7%, 74.1%, 0%, 45.5%)
CIE-LABlab(35.06, 54.66, -34.81)
CIE-LCHlch(35.06, 64.80, 327.51°)
OKLaboklab(46.39% 0.152 -0.0965)
OKLCHoklch(46.39% 0.18 327.6)
XYZxyz(15.7721, 8.5302, 25.2369)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A248B #258B24
analogous
#56248B #8A248B #8B2459
triadic
#8A248B #8B8A24 #248B8A
tetradic
#8A248B #8B5624 #258B24 #24598B
square
#8A248B #8B5624 #258B24 #24598B
split-complementary
#8A248B #598B24 #248B56
monochromatic
#290B2A #5A175A #8A248B #BA31BC #D256D3

Accessibility & contrast

On white

7.76
#8A248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A248B
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A248B#FFFFFF#000000##FFFFFF
##8A248B1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#8E3455
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a248b;
/* rgb */ color: rgb(138, 36, 139);
/* oklch */ color: oklch(46.4% 0.180 327.6);
Tailwind
colors: {
  custom: {
    50: '#b06aad',
    500: '#8a248b',
    950: '#000000',
  },
}
SCSS
$custom: #8a248b;
$custom-light: #b06aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a248b",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 299.417,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46391,
    "c": 0.18005,
    "h": 327.6
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#8A248B
secondary
#54B753
accent
#E24647
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A248B

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

Preview Lab → · Contrast checker → · Palette generator →

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