#8A297F#8A297F

#8A297F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.164 H 332.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8A297F
RGBrgb(138, 41, 127)
HSLhsl(307, 54%, 35%)
HSVhsv(307, 70%, 54%)
CMYKcmyk(0%, 70.3%, 8%, 45.9%)
CIE-LABlab(35.05, 50.79, -27.40)
CIE-LCHlch(35.05, 57.71, 331.66°)
OKLaboklab(46.17% 0.1463 -0.0751)
OKLCHoklch(46.17% 0.164 332.8)
XYZxyz(15.1050, 8.5227, 20.9240)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A297F #298A34
analogous
#64298A #8A297F #8A294F
triadic
#8A297F #7F8A29 #297F8A
tetradic
#8A297F #8A6429 #298A34 #294F8A
square
#8A297F #8A6429 #298A34 #294F8A
split-complementary
#8A297F #4F8A29 #298A64
monochromatic
#2C0D28 #5B1B54 #8A297F #B937AA #CF5EC2

Accessibility & contrast

On white

7.77
#8A297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A297F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A297F#FFFFFF#000000##FFFFFF
##8A297F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254A81
Deuteranopia (green-blind)
#48577D
Tritanopia (blue-blind)
#903250
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a297f;
/* rgb */ color: rgb(138, 41, 127);
/* oklch */ color: oklch(46.2% 0.164 332.8);
Tailwind
colors: {
  custom: {
    50: '#af6ca4',
    500: '#8a297f',
    950: '#000000',
  },
}
SCSS
$custom: #8a297f;
$custom-light: #af6ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a297f",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 306.804,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46166,
    "c": 0.16441,
    "h": 332.8
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#8A297F
secondary
#5AB564
accent
#DE5B4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A297F

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

Preview Lab → · Contrast checker → · Palette generator →

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