#8A28A5#8A28A5

#8A28A5 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.198 H 317.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A28A5
RGBrgb(138, 40, 165)
HSLhsl(287, 61%, 40%)
HSVhsv(287, 76%, 65%)
CMYKcmyk(16.4%, 75.8%, 0%, 35.3%)
CIE-LABlab(37.19, 58.05, -47.24)
CIE-LCHlch(37.19, 74.84, 320.86°)
OKLaboklab(48.42% 0.1465 -0.1328)
OKLCHoklch(48.42% 0.198 317.8)
XYZxyz(18.0306, 9.6383, 36.5006)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A5 #43A528
analogous
#4B28A5 #8A28A5 #A52881
triadic
#8A28A5 #A58A28 #28A58A
tetradic
#8A28A5 #A54B28 #43A528 #2881A5
square
#8A28A5 #A54B28 #43A528 #2881A5
split-complementary
#8A28A5 #81A528 #28A54B
monochromatic
#381042 #611C74 #8A28A5 #AF3BCF #C36CDB

Accessibility & contrast

On white

7.17
#8A28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A5#FFFFFF#000000##FFFFFF
##8A28A51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#2D5AA2
Tritanopia (blue-blind)
#894365
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a28a5;
/* rgb */ color: rgb(138, 40, 165);
/* oklch */ color: oklch(48.4% 0.198 317.8);
Tailwind
colors: {
  custom: {
    50: '#b06dc0',
    500: '#8a28a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a5;
$custom-light: #b06dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a5",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 287.04,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48424,
    "c": 0.19774,
    "h": 317.8
  },
  "luminance": 0.09637
}

Semantic roles & 50–950 ramp

primary
#8A28A5
secondary
#7BC267
accent
#E44466
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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