#B8318C#B8318C

#B8318C is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.8% C 0.193 H 344.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B8318C
RGBrgb(184, 49, 140)
HSLhsl(320, 58%, 46%)
HSVhsv(320, 73%, 72%)
CMYKcmyk(0%, 73.4%, 23.9%, 27.8%)
CIE-LABlab(44.64, 61.54, -19.88)
CIE-LCHlch(44.64, 64.67, 342.10°)
OKLaboklab(54.83% 0.1858 -0.053)
OKLCHoklch(54.83% 0.193 344.1)
XYZxyz(25.6001, 14.2831, 26.2146)
Luminance0.1428 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8318C #31B85D
analogous
#A131B8 #B8318C #B83148
triadic
#B8318C #8CB831 #318CB8
tetradic
#B8318C #B8A131 #31B85D #3148B8
square
#B8318C #B8A131 #31B85D #3148B8
split-complementary
#B8318C #48B831 #31B8A1
monochromatic
#571742 #882467 #B8318C #D255A9 #DE85C1

Accessibility & contrast

On white

5.45
#B8318C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B8318C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8318C
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8318C#FFFFFF#000000##FFFFFF
##B8318C1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B8E
Deuteranopia (green-blind)
#6A7289
Tritanopia (blue-blind)
#C4305A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b8318c;
/* rgb */ color: rgb(184, 49, 140);
/* oklch */ color: oklch(54.8% 0.193 344.1);
Tailwind
colors: {
  custom: {
    50: '#d176ad',
    500: '#b8318c',
    950: '#000000',
  },
}
SCSS
$custom: #b8318c;
$custom-light: #d176ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b8318c",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 319.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54831,
    "c": 0.19322,
    "h": 344.1
  },
  "luminance": 0.1428
}

Semantic roles & 50–950 ramp

primary
#B8318C
secondary
#7DC895
accent
#E17947
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8318C

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

Preview Lab → · Contrast checker → · Palette generator →

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