#B3318C#B3318C

#B3318C is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.0% C 0.190 H 342.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B3318C
RGBrgb(179, 49, 140)
HSLhsl(318, 57%, 45%)
HSVhsv(318, 73%, 70%)
CMYKcmyk(0%, 72.6%, 21.8%, 29.8%)
CIE-LABlab(43.77, 60.27, -21.29)
CIE-LCHlch(43.77, 63.92, 340.54°)
OKLaboklab(54.03% 0.1811 -0.0571)
OKLCHoklch(54.03% 0.19 342.5)
XYZxyz(24.4232, 13.6763, 26.1594)
Luminance0.1367 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3318C #31B358
analogous
#9931B3 #B3318C #B3314B
triadic
#B3318C #8CB331 #318CB3
tetradic
#B3318C #B39931 #31B358 #314BB3
square
#B3318C #B39931 #31B358 #314BB3
split-complementary
#B3318C #4BB331 #31B399
monochromatic
#531741 #832466 #B3318C #D052AA #DD82C1

Accessibility & contrast

On white

5.62
#B3318C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B3318C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B3318C
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3318C#FFFFFF#000000##FFFFFF
##B3318C1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A8F
Deuteranopia (green-blind)
#666F89
Tritanopia (blue-blind)
#BE325A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b3318c;
/* rgb */ color: rgb(179, 49, 140);
/* oklch */ color: oklch(54.0% 0.190 342.5);
Tailwind
colors: {
  custom: {
    50: '#ce75ad',
    500: '#b3318c',
    950: '#000000',
  },
}
SCSS
$custom: #b3318c;
$custom-light: #ce75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b3318c",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 318,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54034,
    "c": 0.18988,
    "h": 342.5
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#B3318C
secondary
#7AC691
accent
#E07548
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B3318C

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

Preview Lab → · Contrast checker → · Palette generator →

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