#8A298E#8A298E

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

Color values

HEX#8A298E
RGBrgb(138, 41, 142)
HSLhsl(298, 55%, 36%)
HSVhsv(298, 71%, 56%)
CMYKcmyk(2.8%, 71.1%, 0%, 44.3%)
CIE-LABlab(35.87, 53.38, -35.37)
CIE-LCHlch(35.87, 64.03, 326.47°)
OKLaboklab(47.03% 0.1469 -0.0982)
OKLCHoklch(47.03% 0.177 326.2)
XYZxyz(16.1563, 8.9432, 26.4612)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A298E #2D8E29
analogous
#57298E #8A298E #8E295F
triadic
#8A298E #8E8A29 #298E8A
tetradic
#8A298E #8E5729 #2D8E29 #295F8E
square
#8A298E #8E5729 #2D8E29 #295F8E
split-complementary
#8A298E #5F8E29 #298E57
monochromatic
#2E0E2F #5C1B5F #8A298E #B837BD #CD60D1

Accessibility & contrast

On white

7.53
#8A298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A298E
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A298E#FFFFFF#000000##FFFFFF
##8A298E1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D91
Deuteranopia (green-blind)
#40598B
Tritanopia (blue-blind)
#8E3958
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a298e;
/* rgb */ color: rgb(138, 41, 142);
/* oklch */ color: oklch(47.0% 0.177 326.2);
Tailwind
colors: {
  custom: {
    50: '#af6caf',
    500: '#8a298e',
    950: '#000000',
  },
}
SCSS
$custom: #8a298e;
$custom-light: #af6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a298e",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 297.624,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.17669,
    "h": 326.2
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#8A298E
secondary
#60B75C
accent
#DF494F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A298E

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

Preview Lab → · Contrast checker → · Palette generator →

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