#B12FA7#B12FA7

#B12FA7 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.210 H 331.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B12FA7
RGBrgb(177, 47, 167)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 73%, 69%)
CMYKcmyk(0%, 73.4%, 5.6%, 30.6%)
CIE-LABlab(44.48, 64.40, -36.43)
CIE-LCHlch(44.48, 73.99, 330.51°)
OKLaboklab(54.91% 0.184 -0.1003)
OKLCHoklch(54.91% 0.21 331.4)
XYZxyz(26.1230, 14.1723, 37.9114)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FA7 #2FB139
analogous
#7A2FB1 #B12FA7 #B12F66
triadic
#B12FA7 #A7B12F #2FA7B1
tetradic
#B12FA7 #B17A2F #2FB139 #2F66B1
square
#B12FA7 #B17A2F #2FB139 #2F66B1
split-complementary
#B12FA7 #66B12F #2FB17A
monochromatic
#50154C #812279 #B12FA7 #D04DC6 #DD7ED5

Accessibility & contrast

On white

5.48
#B12FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B12FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FA7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FA7#FFFFFF#000000##FFFFFF
##B12FA71.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#5870A4
Tritanopia (blue-blind)
#B83F68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b12fa7;
/* rgb */ color: rgb(177, 47, 167);
/* oklch */ color: oklch(54.9% 0.210 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc75c1',
    500: '#b12fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b12fa7;
$custom-light: #cc75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fa7",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 304.615,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54905,
    "c": 0.20957,
    "h": 331.4
  },
  "luminance": 0.1417
}

Semantic roles & 50–950 ramp

primary
#B12FA7
secondary
#76C57D
accent
#E15247
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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