#8F28A2#8F28A2

#8F28A2 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.197 H 320.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8F28A2
RGBrgb(143, 40, 162)
HSLhsl(291, 60%, 40%)
HSVhsv(291, 75%, 64%)
CMYKcmyk(11.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(37.78, 58.50, -44.43)
CIE-LCHlch(37.78, 73.46, 322.79°)
OKLaboklab(48.94% 0.1529 -0.1245)
OKLCHoklch(48.94% 0.197 320.9)
XYZxyz(18.6073, 9.9669, 35.1191)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28A2 #3BA228
analogous
#5228A2 #8F28A2 #A22878
triadic
#8F28A2 #A28F28 #28A28F
tetradic
#8F28A2 #A25228 #3BA228 #2878A2
square
#8F28A2 #A25228 #3BA228 #2878A2
split-complementary
#8F28A2 #78A228 #28A252
monochromatic
#381040 #641C71 #8F28A2 #B739CE #C96ADA

Accessibility & contrast

On white

7.02
#8F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8F28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F28A2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28A2#FFFFFF#000000##FFFFFF
##8F28A21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#365D9F
Tritanopia (blue-blind)
#904063
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f28a2;
/* rgb */ color: rgb(143, 40, 162);
/* oklch */ color: oklch(48.9% 0.197 320.9);
Tailwind
colors: {
  custom: {
    50: '#b46dbe',
    500: '#8f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #8f28a2;
$custom-light: #b46dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28a2",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 290.656,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48943,
    "c": 0.19714,
    "h": 320.9
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#8F28A2
secondary
#73C165
accent
#E4445D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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