#8A298F#8A298F

#8A298F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.178 H 325.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A298F
RGBrgb(138, 41, 143)
HSLhsl(297, 55%, 36%)
HSVhsv(297, 71%, 56%)
CMYKcmyk(3.5%, 71.3%, 0%, 43.9%)
CIE-LABlab(35.93, 53.55, -35.89)
CIE-LCHlch(35.93, 64.47, 326.17°)
OKLaboklab(47.09% 0.1469 -0.0997)
OKLCHoklch(47.09% 0.178 325.8)
XYZxyz(16.2318, 8.9734, 26.8584)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A298F #2E8F29
analogous
#57298F #8A298F #8F2961
triadic
#8A298F #8F8A29 #298F8A
tetradic
#8A298F #8F5729 #2E8F29 #29618F
square
#8A298F #8F5729 #2E8F29 #29618F
split-complementary
#8A298F #618F29 #298F57
monochromatic
#2E0E30 #5C1B5F #8A298F #B837BF #CC61D2

Accessibility & contrast

On white

7.52
#8A298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A298F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A298F#FFFFFF#000000##FFFFFF
##8A298F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114D92
Deuteranopia (green-blind)
#3F598C
Tritanopia (blue-blind)
#8D3959
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a298f;
/* rgb */ color: rgb(138, 41, 143);
/* oklch */ color: oklch(47.1% 0.178 325.8);
Tailwind
colors: {
  custom: {
    50: '#af6cb0',
    500: '#8a298f',
    950: '#000000',
  },
}
SCSS
$custom: #8a298f;
$custom-light: #af6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a298f",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 297.059,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47089,
    "c": 0.17753,
    "h": 325.8
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#8A298F
secondary
#61B75C
accent
#DF4950
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A298F

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

Preview Lab → · Contrast checker → · Palette generator →

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