#8A248C#8A248C

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

Color values

HEX#8A248C
RGBrgb(138, 36, 140)
HSLhsl(299, 59%, 35%)
HSVhsv(299, 74%, 55%)
CMYKcmyk(1.4%, 74.3%, 0%, 45.1%)
CIE-LABlab(35.12, 54.83, -35.34)
CIE-LCHlch(35.12, 65.23, 327.20°)
OKLaboklab(46.45% 0.152 -0.098)
OKLCHoklch(46.45% 0.181 327.2)
XYZxyz(15.8455, 8.5596, 25.6234)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A248C #268C24
analogous
#56248C #8A248C #8C245A
triadic
#8A248C #8C8A24 #248C8A
tetradic
#8A248C #8C5624 #268C24 #245A8C
square
#8A248C #8C5624 #268C24 #245A8C
split-complementary
#8A248C #5A8C24 #248C56
monochromatic
#2A0B2B #5A175B #8A248C #BA31BD #D157D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A248C#FFFFFF#000000##FFFFFF
##8A248C1.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)
#0C4A8F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#8E3556
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a248c;
/* rgb */ color: rgb(138, 36, 140);
/* oklch */ color: oklch(46.5% 0.181 327.2);
Tailwind
colors: {
  custom: {
    50: '#b06aae',
    500: '#8a248c',
    950: '#000000',
  },
}
SCSS
$custom: #8a248c;
$custom-light: #b06aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a248c",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 298.846,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46452,
    "c": 0.18087,
    "h": 327.2
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#8A248C
secondary
#56B854
accent
#E24649
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A248C

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

Preview Lab → · Contrast checker → · Palette generator →

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