#8F1F98#8F1F98

#8F1F98 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.198 H 324.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8F1F98
RGBrgb(143, 31, 152)
HSLhsl(296, 66%, 36%)
HSVhsv(296, 80%, 60%)
CMYKcmyk(5.9%, 79.6%, 0%, 40.4%)
CIE-LABlab(36.15, 59.57, -40.99)
CIE-LCHlch(36.15, 72.31, 325.47°)
OKLaboklab(47.58% 0.1615 -0.1143)
OKLCHoklch(47.58% 0.198 324.7)
XYZxyz(17.4847, 9.0878, 30.5329)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1F98 #28981F
analogous
#521F98 #8F1F98 #981F64
triadic
#8F1F98 #988F1F #1F988F
tetradic
#8F1F98 #98521F #28981F #1F6498
square
#8F1F98 #98521F #28981F #1F6498
split-complementary
#8F1F98 #64981F #1F9852
monochromatic
#2F0A32 #5F1565 #8F1F98 #BF29CB #D255DC

Accessibility & contrast

On white

7.45
#8F1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8F1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1F98
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1F98#FFFFFF#000000##FFFFFF
##8F1F981.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#92375C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8f1f98;
/* rgb */ color: rgb(143, 31, 152);
/* oklch */ color: oklch(47.6% 0.198 324.7);
Tailwind
colors: {
  custom: {
    50: '#b469b7',
    500: '#8f1f98',
    950: '#000000',
  },
}
SCSS
$custom: #8f1f98;
$custom-light: #b469b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1f98",
  "rgb": {
    "r": 143,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 295.537,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47584,
    "c": 0.19789,
    "h": 324.7
  },
  "luminance": 0.09087
}

Semantic roles & 50–950 ramp

primary
#8F1F98
secondary
#5BC053
accent
#E93F4B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #8F1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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