#8F127D#8F127D

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

Color values

HEX#8F127D
RGBrgb(143, 18, 125)
HSLhsl(309, 78%, 32%)
HSVhsv(309, 87%, 56%)
CMYKcmyk(0%, 87.4%, 12.6%, 43.9%)
CIE-LABlab(33.47, 58.45, -28.58)
CIE-LCHlch(33.47, 65.07, 333.95°)
OKLaboklab(45.17% 0.1714 -0.0782)
OKLCHoklch(45.17% 0.188 335.5)
XYZxyz(15.2459, 7.7544, 20.0919)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F127D #128F24
analogous
#63128F #8F127D #8F123F
triadic
#8F127D #7D8F12 #127D8F
tetradic
#8F127D #8F6312 #128F24 #123F8F
square
#8F127D #8F6312 #128F24 #123F8F
split-complementary
#8F127D #3F8F12 #128F63
monochromatic
#22041E #590B4D #8F127D #C519AD #E636CC

Accessibility & contrast

On white

8.23
#8F127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F127D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F127D#FFFFFF#000000##FFFFFF
##8F127D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124380
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#97204A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f127d;
/* rgb */ color: rgb(143, 18, 125);
/* oklch */ color: oklch(45.2% 0.188 335.5);
Tailwind
colors: {
  custom: {
    50: '#b464a3',
    500: '#8f127d',
    950: '#000000',
  },
}
SCSS
$custom: #8f127d;
$custom-light: #b464a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f127d",
  "rgb": {
    "r": 143,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 308.64,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45165,
    "c": 0.18837,
    "h": 335.5
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#8F127D
secondary
#3AC34D
accent
#F44F34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F127D

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

Preview Lab → · Contrast checker → · Palette generator →

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