#8A298D#8A298D

#8A298D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.176 H 326.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8A298D
RGBrgb(138, 41, 141)
HSLhsl(298, 55%, 36%)
HSVhsv(298, 71%, 55%)
CMYKcmyk(2.1%, 70.9%, 0%, 44.7%)
CIE-LABlab(35.82, 53.20, -34.85)
CIE-LCHlch(35.82, 63.59, 326.77°)
OKLaboklab(46.97% 0.1469 -0.0966)
OKLCHoklch(46.97% 0.176 326.7)
XYZxyz(16.0816, 8.9133, 26.0676)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A298D #2C8D29
analogous
#58298D #8A298D #8D295E
triadic
#8A298D #8D8A29 #298D8A
tetradic
#8A298D #8D5829 #2C8D29 #295E8D
square
#8A298D #8D5829 #2C8D29 #295E8D
split-complementary
#8A298D #5E8D29 #298D58
monochromatic
#2D0D2E #5C1B5E #8A298D #B837BC #CD60D1

Accessibility & contrast

On white

7.55
#8A298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A298D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A298D#FFFFFF#000000##FFFFFF
##8A298D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#40588A
Tritanopia (blue-blind)
#8E3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a298d;
/* rgb */ color: rgb(138, 41, 141);
/* oklch */ color: oklch(47.0% 0.176 326.7);
Tailwind
colors: {
  custom: {
    50: '#af6caf',
    500: '#8a298d',
    950: '#000000',
  },
}
SCSS
$custom: #8a298d;
$custom-light: #af6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a298d",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 298.2,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46968,
    "c": 0.17585,
    "h": 326.7
  },
  "luminance": 0.08912
}

Semantic roles & 50–950 ramp

primary
#8A298D
secondary
#5EB65B
accent
#DE4A4E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A298D

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

Preview Lab → · Contrast checker → · Palette generator →

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