#8A297A#8A297A

#8A297A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.161 H 335.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8A297A
RGBrgb(138, 41, 122)
HSLhsl(310, 54%, 35%)
HSVhsv(310, 70%, 54%)
CMYKcmyk(0%, 70.3%, 11.6%, 45.9%)
CIE-LABlab(34.79, 49.98, -24.68)
CIE-LCHlch(34.79, 55.74, 333.72°)
OKLaboklab(45.9% 0.1457 -0.0673)
OKLCHoklch(45.9% 0.161 335.2)
XYZxyz(14.7872, 8.3956, 19.2503)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A297A #298A39
analogous
#6A298A #8A297A #8A2949
triadic
#8A297A #7A8A29 #297A8A
tetradic
#8A297A #8A6A29 #298A39 #29498A
square
#8A297A #8A6A29 #298A39 #29498A
split-complementary
#8A297A #498A29 #298A6A
monochromatic
#2C0D27 #5B1B50 #8A297A #B937A4 #CF5EBD

Accessibility & contrast

On white

7.84
#8A297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A297A
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A297A#FFFFFF#000000##FFFFFF
##8A297A1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497C
Deuteranopia (green-blind)
#4A5778
Tritanopia (blue-blind)
#91304E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a297a;
/* rgb */ color: rgb(138, 41, 122);
/* oklch */ color: oklch(45.9% 0.161 335.2);
Tailwind
colors: {
  custom: {
    50: '#af6ba0',
    500: '#8a297a',
    950: '#000000',
  },
}
SCSS
$custom: #8a297a;
$custom-light: #af6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a297a",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 309.897,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45898,
    "c": 0.16053,
    "h": 335.2
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#8A297A
secondary
#5AB569
accent
#DE634A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A297A

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

Preview Lab → · Contrast checker → · Palette generator →

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