#8A297E#8A297E

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

Color values

HEX#8A297E
RGBrgb(138, 41, 126)
HSLhsl(307, 54%, 35%)
HSVhsv(307, 70%, 54%)
CMYKcmyk(0%, 70.3%, 8.7%, 45.9%)
CIE-LABlab(35.00, 50.63, -26.86)
CIE-LCHlch(35.00, 57.31, 332.06°)
OKLaboklab(46.11% 0.1462 -0.0735)
OKLCHoklch(46.11% 0.164 333.3)
XYZxyz(15.0401, 8.4967, 20.5825)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A297E #298A35
analogous
#66298A #8A297E #8A294D
triadic
#8A297E #7E8A29 #297E8A
tetradic
#8A297E #8A6629 #298A35 #294D8A
square
#8A297E #8A6629 #298A35 #294D8A
split-complementary
#8A297E #4D8A29 #298A66
monochromatic
#2C0D28 #5B1B53 #8A297E #B937A9 #CF5EC1

Accessibility & contrast

On white

7.78
#8A297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A297E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A297E#FFFFFF#000000##FFFFFF
##8A297E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#903250
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a297e;
/* rgb */ color: rgb(138, 41, 126);
/* oklch */ color: oklch(46.1% 0.164 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6ca3',
    500: '#8a297e',
    950: '#000000',
  },
}
SCSS
$custom: #8a297e;
$custom-light: #af6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a297e",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 307.423,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46111,
    "c": 0.16362,
    "h": 333.3
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#8A297E
secondary
#5AB565
accent
#DE5C4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A297E

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

Preview Lab → · Contrast checker → · Palette generator →

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