#8A249C#8A249C

#8A249C is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.194 H 321.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A249C
RGBrgb(138, 36, 156)
HSLhsl(291, 63%, 38%)
HSVhsv(291, 77%, 61%)
CMYKcmyk(11.5%, 76.9%, 0%, 38.8%)
CIE-LABlab(36.11, 57.71, -43.53)
CIE-LCHlch(36.11, 72.29, 322.97°)
OKLaboklab(47.47% 0.1511 -0.1219)
OKLCHoklch(47.47% 0.194 321.1)
XYZxyz(17.1122, 9.0663, 32.2947)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A249C #369C24
analogous
#4E249C #8A249C #9C2472
triadic
#8A249C #9C8A24 #249C8A
tetradic
#8A249C #9C4E24 #369C24 #24729C
square
#8A249C #9C4E24 #369C24 #24729C
split-complementary
#8A249C #729C24 #249C4E
monochromatic
#320D39 #5E196A #8A249C #B62FCE #C860DA

Accessibility & contrast

On white

7.47
#8A249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A249C
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A249C#FFFFFF#000000##FFFFFF
##8A249C1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#335999
Tritanopia (blue-blind)
#8B3C5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a249c;
/* rgb */ color: rgb(138, 36, 156);
/* oklch */ color: oklch(47.5% 0.194 321.1);
Tailwind
colors: {
  custom: {
    50: '#b06bba',
    500: '#8a249c',
    950: '#000000',
  },
}
SCSS
$custom: #8a249c;
$custom-light: #b06bba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a249c",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 291,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.19417,
    "h": 321.1
  },
  "luminance": 0.09065
}

Semantic roles & 50–950 ramp

primary
#8A249C
secondary
#6BBF5C
accent
#E6425B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A249C

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

Preview Lab → · Contrast checker → · Palette generator →

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