#8A2790#8A2790

#8A2790 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.181 H 325.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8A2790
RGBrgb(138, 39, 144)
HSLhsl(297, 57%, 36%)
HSVhsv(297, 73%, 56%)
CMYKcmyk(4.2%, 72.9%, 0%, 43.5%)
CIE-LABlab(35.73, 54.48, -36.83)
CIE-LCHlch(35.73, 65.75, 325.94°)
OKLaboklab(46.96% 0.149 -0.1024)
OKLCHoklch(46.96% 0.181 325.5)
XYZxyz(16.2404, 8.8690, 27.2366)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2790 #2D9027
analogous
#552790 #8A2790 #902761
triadic
#8A2790 #908A27 #27908A
tetradic
#8A2790 #905527 #2D9027 #276190
square
#8A2790 #905527 #2D9027 #276190
split-complementary
#8A2790 #619027 #279055
monochromatic
#2E0D30 #5C1A60 #8A2790 #B834C0 #CD5ED3

Accessibility & contrast

On white

7.57
#8A2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2790
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2790#FFFFFF#000000##FFFFFF
##8A27901.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C93
Deuteranopia (green-blind)
#3D588D
Tritanopia (blue-blind)
#8D3859
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2790;
/* rgb */ color: rgb(138, 39, 144);
/* oklch */ color: oklch(47.0% 0.181 325.5);
Tailwind
colors: {
  custom: {
    50: '#af6bb1',
    500: '#8a2790',
    950: '#000000',
  },
}
SCSS
$custom: #8a2790;
$custom-light: #af6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2790",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 296.571,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46963,
    "c": 0.18076,
    "h": 325.5
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#8A2790
secondary
#60B95A
accent
#E14750
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2790

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

Preview Lab → · Contrast checker → · Palette generator →

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