#8F127C#8F127C

#8F127C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.188 H 335.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8F127C
RGBrgb(143, 18, 124)
HSLhsl(309, 78%, 32%)
HSVhsv(309, 87%, 56%)
CMYKcmyk(0%, 87.4%, 13.3%, 43.9%)
CIE-LABlab(33.41, 58.31, -28.03)
CIE-LCHlch(33.41, 64.70, 334.32°)
OKLaboklab(45.11% 0.1713 -0.0767)
OKLCHoklch(45.11% 0.188 335.9)
XYZxyz(15.1824, 7.7290, 19.7571)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F127C #128F25
analogous
#64128F #8F127C #8F123E
triadic
#8F127C #7C8F12 #127C8F
tetradic
#8F127C #8F6412 #128F25 #123E8F
square
#8F127C #8F6412 #128F25 #123E8F
split-complementary
#8F127C #3E8F12 #128F64
monochromatic
#22041E #590B4D #8F127C #C519AB #E636CB

Accessibility & contrast

On white

8.25
#8F127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8F127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F127C
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F127C#FFFFFF#000000##FFFFFF
##8F127C1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#455579
Tritanopia (blue-blind)
#971F49
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f127c;
/* rgb */ color: rgb(143, 18, 124);
/* oklch */ color: oklch(45.1% 0.188 335.9);
Tailwind
colors: {
  custom: {
    50: '#b464a2',
    500: '#8f127c',
    950: '#000000',
  },
}
SCSS
$custom: #8f127c;
$custom-light: #b464a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f127c",
  "rgb": {
    "r": 143,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 309.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45109,
    "c": 0.18769,
    "h": 335.9
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#8F127C
secondary
#3AC34F
accent
#F45134
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F127C

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

Preview Lab → · Contrast checker → · Palette generator →

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