#8F127E#8F127E

#8F127E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.189 H 335.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8F127E
RGBrgb(143, 18, 126)
HSLhsl(308, 78%, 32%)
HSVhsv(308, 87%, 56%)
CMYKcmyk(0%, 87.4%, 11.9%, 43.9%)
CIE-LABlab(33.52, 58.60, -29.12)
CIE-LCHlch(33.52, 65.44, 333.58°)
OKLaboklab(45.22% 0.1714 -0.0798)
OKLCHoklch(45.22% 0.189 335)
XYZxyz(15.3101, 7.7801, 20.4300)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F127E #128F23
analogous
#62128F #8F127E #8F1240
triadic
#8F127E #7E8F12 #127E8F
tetradic
#8F127E #8F6212 #128F23 #12408F
square
#8F127E #8F6212 #128F23 #12408F
split-complementary
#8F127E #408F12 #128F62
monochromatic
#22041E #590B4E #8F127E #C519AE #E636CE

Accessibility & contrast

On white

8.22
#8F127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8F127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F127E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F127E#FFFFFF#000000##FFFFFF
##8F127E1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114381
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#96214A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f127e;
/* rgb */ color: rgb(143, 18, 126);
/* oklch */ color: oklch(45.2% 0.189 335.0);
Tailwind
colors: {
  custom: {
    50: '#b464a4',
    500: '#8f127e',
    950: '#000000',
  },
}
SCSS
$custom: #8f127e;
$custom-light: #b464a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f127e",
  "rgb": {
    "r": 143,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 308.16,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45221,
    "c": 0.18905,
    "h": 335
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#8F127E
secondary
#3AC34C
accent
#F44E34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F127E

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

Preview Lab → · Contrast checker → · Palette generator →

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