#B12F97#B12F97

#B12F97 is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.1% C 0.198 H 337.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B12F97
RGBrgb(177, 47, 151)
HSLhsl(312, 58%, 44%)
HSVhsv(312, 73%, 69%)
CMYKcmyk(0%, 73.4%, 14.7%, 30.6%)
CIE-LABlab(43.68, 61.99, -28.11)
CIE-LCHlch(43.68, 68.06, 335.61°)
OKLaboklab(54.07% 0.1828 -0.0764)
OKLCHoklch(54.07% 0.198 337.3)
XYZxyz(24.7344, 13.6168, 30.5978)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12F97 #2FB149
analogous
#8A2FB1 #B12F97 #B12F56
triadic
#B12F97 #97B12F #2F97B1
tetradic
#B12F97 #B18A2F #2FB149 #2F56B1
square
#B12F97 #B18A2F #2FB149 #2F56B1
split-complementary
#B12F97 #56B12F #2FB18A
monochromatic
#501544 #81226E #B12F97 #D04DB6 #DD7ECA

Accessibility & contrast

On white

5.64
#B12F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B12F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12F97
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12F97#FFFFFF#000000##FFFFFF
##B12F971.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#5F6E94
Tritanopia (blue-blind)
#BB3760
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b12f97;
/* rgb */ color: rgb(177, 47, 151);
/* oklch */ color: oklch(54.1% 0.198 337.3);
Tailwind
colors: {
  custom: {
    50: '#cc74b6',
    500: '#b12f97',
    950: '#000000',
  },
}
SCSS
$custom: #b12f97;
$custom-light: #cc74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b12f97",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 312,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54068,
    "c": 0.19813,
    "h": 337.3
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#B12F97
secondary
#76C586
accent
#E16547
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B12F97

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

Preview Lab → · Contrast checker → · Palette generator →

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