#B12FA4#B12FA4

#B12FA4 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.7% C 0.207 H 332.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B12FA4
RGBrgb(177, 47, 164)
HSLhsl(306, 58%, 44%)
HSVhsv(306, 73%, 69%)
CMYKcmyk(0%, 73.4%, 7.3%, 30.6%)
CIE-LABlab(44.32, 63.93, -34.89)
CIE-LCHlch(44.32, 72.83, 331.38°)
OKLaboklab(54.74% 0.1839 -0.0958)
OKLCHoklch(54.74% 0.207 332.5)
XYZxyz(25.8489, 14.0626, 36.4677)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FA4 #2FB13C
analogous
#7D2FB1 #B12FA4 #B12F63
triadic
#B12FA4 #A4B12F #2FA4B1
tetradic
#B12FA4 #B17D2F #2FB13C #2F63B1
square
#B12FA4 #B17D2F #2FB13C #2F63B1
split-complementary
#B12FA4 #63B12F #2FB17D
monochromatic
#50154A #812277 #B12FA4 #D04DC3 #DD7ED3

Accessibility & contrast

On white

5.51
#B12FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B12FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FA4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FA4#FFFFFF#000000##FFFFFF
##B12FA41.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA7
Deuteranopia (green-blind)
#5A6FA1
Tritanopia (blue-blind)
#B93D67
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b12fa4;
/* rgb */ color: rgb(177, 47, 164);
/* oklch */ color: oklch(54.7% 0.207 332.5);
Tailwind
colors: {
  custom: {
    50: '#cc75bf',
    500: '#b12fa4',
    950: '#000000',
  },
}
SCSS
$custom: #b12fa4;
$custom-light: #cc75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fa4",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 306,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54742,
    "c": 0.20736,
    "h": 332.5
  },
  "luminance": 0.1406
}

Semantic roles & 50–950 ramp

primary
#B12FA4
secondary
#76C57E
accent
#E15647
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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