#8A297B#8A297B

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

Color values

HEX#8A297B
RGBrgb(138, 41, 123)
HSLhsl(309, 54%, 35%)
HSVhsv(309, 70%, 54%)
CMYKcmyk(0%, 70.3%, 10.9%, 45.9%)
CIE-LABlab(34.84, 50.14, -25.22)
CIE-LCHlch(34.84, 56.13, 333.30°)
OKLaboklab(45.95% 0.1459 -0.0689)
OKLCHoklch(45.95% 0.161 334.7)
XYZxyz(14.8495, 8.4205, 19.5783)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A297B #298A38
analogous
#68298A #8A297B #8A294B
triadic
#8A297B #7B8A29 #297B8A
tetradic
#8A297B #8A6829 #298A38 #294B8A
square
#8A297B #8A6829 #298A38 #294B8A
split-complementary
#8A297B #4B8A29 #298A68
monochromatic
#2C0D27 #5B1B51 #8A297B #B937A5 #CF5EBE

Accessibility & contrast

On white

7.82
#8A297B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A297B
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A297B#FFFFFF#000000##FFFFFF
##8A297B1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#91304E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a297b;
/* rgb */ color: rgb(138, 41, 123);
/* oklch */ color: oklch(46.0% 0.161 334.7);
Tailwind
colors: {
  custom: {
    50: '#af6ca1',
    500: '#8a297b',
    950: '#000000',
  },
}
SCSS
$custom: #8a297b;
$custom-light: #af6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a297b",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 123
  },
  "hsl": {
    "h": 309.278,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45951,
    "c": 0.1613,
    "h": 334.7
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#8A297B
secondary
#5AB568
accent
#DE614A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A297B

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

Preview Lab → · Contrast checker → · Palette generator →

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