#8F28A4#8F28A4

#8F28A4 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.1% C 0.199 H 320.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8F28A4
RGBrgb(143, 40, 164)
HSLhsl(290, 61%, 40%)
HSVhsv(290, 76%, 64%)
CMYKcmyk(12.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(37.91, 58.88, -45.43)
CIE-LCHlch(37.91, 74.36, 322.35°)
OKLaboklab(49.08% 0.1527 -0.1274)
OKLCHoklch(49.08% 0.199 320.2)
XYZxyz(18.7865, 10.0385, 36.0628)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28A4 #3DA428
analogous
#5128A4 #8F28A4 #A4287B
triadic
#8F28A4 #A48F28 #28A48F
tetradic
#8F28A4 #A45128 #3DA428 #287BA4
square
#8F28A4 #A45128 #3DA428 #287BA4
split-complementary
#8F28A4 #7BA428 #28A451
monochromatic
#391042 #641C73 #8F28A4 #B63ACF #C86BDB

Accessibility & contrast

On white

6.98
#8F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8F28A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28A4
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28A4#FFFFFF#000000##FFFFFF
##8F28A41.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#345DA1
Tritanopia (blue-blind)
#904165
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f28a4;
/* rgb */ color: rgb(143, 40, 164);
/* oklch */ color: oklch(49.1% 0.199 320.2);
Tailwind
colors: {
  custom: {
    50: '#b46dc0',
    500: '#8f28a4',
    950: '#000000',
  },
}
SCSS
$custom: #8f28a4;
$custom-light: #b46dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28a4",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 289.839,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.49076,
    "c": 0.19885,
    "h": 320.2
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#8F28A4
secondary
#76C166
accent
#E4445F
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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