#8F5798#8F5798

#8F5798 is a mid, moderate purple. Relative luminance 0.149; OKLCH L 54.4% C 0.117 H 321.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8F5798
RGBrgb(143, 87, 152)
HSLhsl(292, 27%, 47%)
HSVhsv(292, 43%, 60%)
CMYKcmyk(5.9%, 42.8%, 0%, 40.4%)
CIE-LABlab(45.53, 34.16, -26.20)
CIE-LCHlch(45.53, 43.05, 322.52°)
OKLaboklab(54.43% 0.0917 -0.0719)
OKLCHoklch(54.43% 0.117 321.9)
XYZxyz(20.4027, 14.9238, 31.5055)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5798 #609857
analogous
#6F5798 #8F5798 #985781
triadic
#8F5798 #988F57 #57988F
tetradic
#8F5798 #986F57 #609857 #578198
square
#8F5798 #986F57 #609857 #578198
split-complementary
#8F5798 #819857 #57986F
monochromatic
#462A4A #6A4171 #8F5798 #AB7AB3 #C3A0C9

Accessibility & contrast

On white

5.27
#8F5798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8F5798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F5798
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5798#FFFFFF#000000##FFFFFF
##8F57981.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F689A
Deuteranopia (green-blind)
#5E6E96
Tritanopia (blue-blind)
#915F70
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f5798;
/* rgb */ color: rgb(143, 87, 152);
/* oklch */ color: oklch(54.4% 0.117 321.9);
Tailwind
colors: {
  custom: {
    50: '#b188b6',
    500: '#8f5798',
    950: '#000000',
  },
}
SCSS
$custom: #8f5798;
$custom-light: #b188b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5798",
  "rgb": {
    "r": 143,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 291.692,
    "s": 27.197,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54433,
    "c": 0.11655,
    "h": 321.9
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#8F5798
secondary
#99B694
accent
#C46471
background
#FBF8FB
surface
#F6F0F6
border
#D0CBD0
text
#110B11
muted
#807C80

Preview Lab

Preview with #8F5798

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

Preview Lab → · Contrast checker → · Palette generator →

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