#8F127B#8F127B

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

Color values

HEX#8F127B
RGBrgb(143, 18, 123)
HSLhsl(310, 78%, 32%)
HSVhsv(310, 87%, 56%)
CMYKcmyk(0%, 87.4%, 14%, 43.9%)
CIE-LABlab(33.36, 58.17, -27.49)
CIE-LCHlch(33.36, 64.33, 334.70°)
OKLaboklab(45.05% 0.1713 -0.0751)
OKLCHoklch(45.05% 0.187 336.3)
XYZxyz(15.1194, 7.7038, 19.4258)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F127B #128F26
analogous
#65128F #8F127B #8F123D
triadic
#8F127B #7B8F12 #127B8F
tetradic
#8F127B #8F6512 #128F26 #123D8F
square
#8F127B #8F6512 #128F26 #123D8F
split-complementary
#8F127B #3D8F12 #128F65
monochromatic
#22041D #590B4C #8F127B #C519AA #E636CA

Accessibility & contrast

On white

8.27
#8F127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8F127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F127B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F127B#FFFFFF#000000##FFFFFF
##8F127B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437E
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#971E48
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8f127b;
/* rgb */ color: rgb(143, 18, 123);
/* oklch */ color: oklch(45.1% 0.187 336.3);
Tailwind
colors: {
  custom: {
    50: '#b464a1',
    500: '#8f127b',
    950: '#000000',
  },
}
SCSS
$custom: #8f127b;
$custom-light: #b464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f127b",
  "rgb": {
    "r": 143,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 309.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.18702,
    "h": 336.3
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

primary
#8F127B
secondary
#3AC350
accent
#F45234
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8F127B

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

Preview Lab → · Contrast checker → · Palette generator →

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