#B12FB2#B12FB2

#B12FB2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.218 H 327.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B12FB2
RGBrgb(177, 47, 178)
HSLhsl(300, 58%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(45.08, 66.17, -41.99)
CIE-LCHlch(45.08, 78.37, 327.60°)
OKLaboklab(55.53% 0.1842 -0.1164)
OKLCHoklch(55.53% 0.218 327.7)
XYZxyz(27.1835, 14.5965, 43.4965)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FB2 #30B22F
analogous
#702FB2 #B12FB2 #B22F72
triadic
#B12FB2 #B2B12F #2FB2B1
tetradic
#B12FB2 #B2702F #30B22F #2F72B2
square
#B12FB2 #B2702F #30B22F #2F72B2
split-complementary
#B12FB2 #72B22F #2FB270
monochromatic
#511551 #812282 #B12FB2 #CF4ED0 #DC7EDD

Accessibility & contrast

On white

5.36
#B12FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B12FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FB2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FB2#FFFFFF#000000##FFFFFF
##B12FB21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B6
Deuteranopia (green-blind)
#5270AF
Tritanopia (blue-blind)
#B6446E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12fb2;
/* rgb */ color: rgb(177, 47, 178);
/* oklch */ color: oklch(55.5% 0.218 327.7);
Tailwind
colors: {
  custom: {
    50: '#cc75c9',
    500: '#b12fb2',
    950: '#000000',
  },
}
SCSS
$custom: #b12fb2;
$custom-light: #cc75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fb2",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 299.542,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55526,
    "c": 0.21787,
    "h": 327.7
  },
  "luminance": 0.14594
}

Semantic roles & 50–950 ramp

primary
#B12FB2
secondary
#78C677
accent
#E14648
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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