#8E1F7B#8E1F7B

#8E1F7B is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 336.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8E1F7B
RGBrgb(142, 31, 123)
HSLhsl(310, 64%, 34%)
HSVhsv(310, 78%, 56%)
CMYKcmyk(0%, 78.2%, 13.4%, 44.3%)
CIE-LABlab(34.32, 54.63, -26.00)
CIE-LCHlch(34.32, 60.50, 334.55°)
OKLaboklab(45.71% 0.1604 -0.0709)
OKLCHoklch(45.71% 0.175 336.2)
XYZxyz(15.2207, 8.1622, 19.5089)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F7B #1F8E32
analogous
#6A1F8E #8E1F7B #8E1F44
triadic
#8E1F7B #7B8E1F #1F7B8E
tetradic
#8E1F7B #8E6A1F #1F8E32 #1F448E
square
#8E1F7B #8E6A1F #1F8E32 #1F448E
split-complementary
#8E1F7B #448E1F #1F8E6A
monochromatic
#2A0924 #5C144F #8E1F7B #C02AA7 #D94FC1

Accessibility & contrast

On white

7.98
#8E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F7B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F7B#FFFFFF#000000##FFFFFF
##8E1F7B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#96284B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1f7b;
/* rgb */ color: rgb(142, 31, 123);
/* oklch */ color: oklch(45.7% 0.175 336.2);
Tailwind
colors: {
  custom: {
    50: '#b368a1',
    500: '#8e1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f7b;
$custom-light: #b368a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f7b",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 310.27,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45706,
    "c": 0.17538,
    "h": 336.2
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#8E1F7B
secondary
#4DBB60
accent
#E75D41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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