#B8317F#B8317F

#B8317F is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.186 H 349.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B8317F
RGBrgb(184, 49, 127)
HSLhsl(325, 58%, 46%)
HSVhsv(325, 73%, 72%)
CMYKcmyk(0%, 73.4%, 31%, 27.8%)
CIE-LABlab(44.12, 59.92, -12.74)
CIE-LCHlch(44.12, 61.26, 348.00°)
OKLaboklab(54.29% 0.183 -0.0333)
OKLCHoklch(54.29% 0.186 349.7)
XYZxyz(24.6975, 13.9221, 21.4612)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8317F #31B86A
analogous
#AD31B8 #B8317F #B8313C
triadic
#B8317F #7FB831 #317FB8
tetradic
#B8317F #B8AD31 #31B86A #313CB8
square
#B8317F #B8AD31 #31B86A #313CB8
split-complementary
#B8317F #3CB831 #31B8AD
monochromatic
#57173C #88245E #B8317F #D2559D #DE85B9

Accessibility & contrast

On white

5.55
#B8317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B8317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8317F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8317F#FFFFFF#000000##FFFFFF
##B8317F1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465981
Deuteranopia (green-blind)
#6D717C
Tritanopia (blue-blind)
#C52954
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b8317f;
/* rgb */ color: rgb(184, 49, 127);
/* oklch */ color: oklch(54.3% 0.186 349.7);
Tailwind
colors: {
  custom: {
    50: '#d275a4',
    500: '#b8317f',
    950: '#000000',
  },
}
SCSS
$custom: #b8317f;
$custom-light: #d275a4;
$custom-dark: #000000;
JSON
{
  "hex": "#b8317f",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 325.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54287,
    "c": 0.18595,
    "h": 349.7
  },
  "luminance": 0.13919
}

Semantic roles & 50–950 ramp

primary
#B8317F
secondary
#7DC89D
accent
#E18847
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#15090F
muted
#837B7F

Preview Lab

Preview with #B8317F

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

Preview Lab → · Contrast checker → · Palette generator →

#B8317F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva