#8A298C#8A298C

#8A298C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.175 H 327.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8A298C
RGBrgb(138, 41, 140)
HSLhsl(299, 55%, 35%)
HSVhsv(299, 71%, 55%)
CMYKcmyk(1.4%, 70.7%, 0%, 45.1%)
CIE-LABlab(35.76, 53.02, -34.32)
CIE-LCHlch(35.76, 63.16, 327.08°)
OKLaboklab(46.91% 0.1469 -0.0951)
OKLCHoklch(46.91% 0.175 327.1)
XYZxyz(16.0075, 8.8837, 25.6775)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A298C #2B8C29
analogous
#58298C #8A298C #8C295C
triadic
#8A298C #8C8A29 #298C8A
tetradic
#8A298C #8C5829 #2B8C29 #295C8C
square
#8A298C #8C5829 #2B8C29 #295C8C
split-complementary
#8A298C #5C8C29 #298C58
monochromatic
#2D0D2D #5B1B5D #8A298C #B937BB #CE5FD0

Accessibility & contrast

On white

7.56
#8A298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A298C
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A298C#FFFFFF#000000##FFFFFF
##8A298C1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8F
Deuteranopia (green-blind)
#415889
Tritanopia (blue-blind)
#8E3857
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a298c;
/* rgb */ color: rgb(138, 41, 140);
/* oklch */ color: oklch(46.9% 0.175 327.1);
Tailwind
colors: {
  custom: {
    50: '#af6cae',
    500: '#8a298c',
    950: '#000000',
  },
}
SCSS
$custom: #8a298c;
$custom-light: #af6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a298c",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 298.788,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46908,
    "c": 0.17501,
    "h": 327.1
  },
  "luminance": 0.08883
}

Semantic roles & 50–950 ramp

primary
#8A298C
secondary
#5DB65B
accent
#DE4A4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A298C

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

Preview Lab → · Contrast checker → · Palette generator →

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