#8A298B#8A298B

#8A298B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.174 H 327.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8A298B
RGBrgb(138, 41, 139)
HSLhsl(299, 54%, 35%)
HSVhsv(299, 71%, 55%)
CMYKcmyk(0.7%, 70.5%, 0%, 45.5%)
CIE-LABlab(35.70, 52.84, -33.80)
CIE-LCHlch(35.70, 62.73, 327.40°)
OKLaboklab(46.85% 0.1469 -0.0936)
OKLCHoklch(46.85% 0.174 327.5)
XYZxyz(15.9341, 8.8543, 25.2909)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A298B #2A8B29
analogous
#59298B #8A298B #8B295B
triadic
#8A298B #8B8A29 #298B8A
tetradic
#8A298B #8B5929 #2A8B29 #295B8B
square
#8A298B #8B5929 #2A8B29 #295B8B
split-complementary
#8A298B #5B8B29 #298B59
monochromatic
#2C0D2C #5B1B5C #8A298B #B937BA #CF5FD0

Accessibility & contrast

On white

7.58
#8A298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A298B
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A298B#FFFFFF#000000##FFFFFF
##8A298B1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#8E3757
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a298b;
/* rgb */ color: rgb(138, 41, 139);
/* oklch */ color: oklch(46.8% 0.174 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6cad',
    500: '#8a298b',
    950: '#000000',
  },
}
SCSS
$custom: #8a298b;
$custom-light: #af6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a298b",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 299.388,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.17418,
    "h": 327.5
  },
  "luminance": 0.08853
}

Semantic roles & 50–950 ramp

primary
#8A298B
secondary
#5BB55B
accent
#DE4A4C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A298B

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

Preview Lab → · Contrast checker → · Palette generator →

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