#8A4291#8A4291

#8A4291 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.2% C 0.143 H 324.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A4291
RGBrgb(138, 66, 145)
HSLhsl(295, 37%, 41%)
HSVhsv(295, 54%, 57%)
CMYKcmyk(4.8%, 54.5%, 0%, 43.1%)
CIE-LABlab(40.16, 42.61, -30.44)
CIE-LCHlch(40.16, 52.37, 324.46°)
OKLaboklab(50.19% 0.1157 -0.0841)
OKLCHoklch(50.19% 0.143 324)
XYZxyz(17.5398, 11.3449, 28.0485)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4291 #499142
analogous
#634291 #8A4291 #914271
triadic
#8A4291 #918A42 #42918A
tetradic
#8A4291 #916342 #499142 #427191
square
#8A4291 #916342 #499142 #427191
split-complementary
#8A4291 #719142 #429163
monochromatic
#3A1C3D #622F67 #8A4291 #AD5CB5 #C286C8

Accessibility & contrast

On white

6.42
#8A4291 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A4291 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4291
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4291#FFFFFF#000000##FFFFFF
##8A42911.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375994
Deuteranopia (green-blind)
#4E628F
Tritanopia (blue-blind)
#8C4C63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a4291;
/* rgb */ color: rgb(138, 66, 145);
/* oklch */ color: oklch(50.2% 0.143 324.0);
Tailwind
colors: {
  custom: {
    50: '#ae7ab1',
    500: '#8a4291',
    950: '#000000',
  },
}
SCSS
$custom: #8a4291;
$custom-light: #ae7ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4291",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 145
  },
  "hsl": {
    "h": 294.684,
    "s": 37.441,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50192,
    "c": 0.14298,
    "h": 324
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#8A4291
secondary
#81B37C
accent
#CD5A65
background
#FAF7FA
surface
#F5EEF5
border
#CFC9CF
text
#110911
muted
#807B80

Preview Lab

Preview with #8A4291

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

Preview Lab → · Contrast checker → · Palette generator →

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