#8A297D#8A297D

#8A297D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.163 H 333.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8A297D
RGBrgb(138, 41, 125)
HSLhsl(308, 54%, 35%)
HSVhsv(308, 70%, 54%)
CMYKcmyk(0%, 70.3%, 9.4%, 45.9%)
CIE-LABlab(34.95, 50.46, -26.31)
CIE-LCHlch(34.95, 56.91, 332.46°)
OKLaboklab(46.06% 0.1461 -0.072)
OKLCHoklch(46.06% 0.163 333.8)
XYZxyz(14.9759, 8.4711, 20.2444)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A297D #298A36
analogous
#66298A #8A297D #8A294D
triadic
#8A297D #7D8A29 #297D8A
tetradic
#8A297D #8A6629 #298A36 #294D8A
square
#8A297D #8A6629 #298A36 #294D8A
split-complementary
#8A297D #4D8A29 #298A66
monochromatic
#2C0D28 #5B1B52 #8A297D #B937A8 #CF5EC0

Accessibility & contrast

On white

7.80
#8A297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A297D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A297D#FFFFFF#000000##FFFFFF
##8A297D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#90314F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a297d;
/* rgb */ color: rgb(138, 41, 125);
/* oklch */ color: oklch(46.1% 0.163 333.8);
Tailwind
colors: {
  custom: {
    50: '#af6ca3',
    500: '#8a297d',
    950: '#000000',
  },
}
SCSS
$custom: #8a297d;
$custom-light: #af6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a297d",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 308.041,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.16285,
    "h": 333.8
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#8A297D
secondary
#5AB566
accent
#DE5E4A
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A297D

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

Preview Lab → · Contrast checker → · Palette generator →

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