#B12FB6#B12FB6

#B12FB6 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.221 H 326.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B12FB6
RGBrgb(177, 47, 182)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 74%, 71%)
CMYKcmyk(2.7%, 74.2%, 0%, 28.6%)
CIE-LABlab(45.30, 66.83, -43.99)
CIE-LCHlch(45.30, 80.00, 326.65°)
OKLaboklab(55.76% 0.1841 -0.1222)
OKLCHoklch(55.76% 0.221 326.4)
XYZxyz(27.5910, 14.7594, 45.6425)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FB6 #34B62F
analogous
#6E2FB6 #B12FB6 #B62F77
triadic
#B12FB6 #B6B12F #2FB6B1
tetradic
#B12FB6 #B66E2F #34B62F #2F77B6
square
#B12FB6 #B66E2F #34B62F #2F77B6
split-complementary
#B12FB6 #77B62F #2FB66E
monochromatic
#521655 #822285 #B12FB6 #CD50D2 #DB81DE

Accessibility & contrast

On white

5.31
#B12FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B12FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FB6
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FB6#FFFFFF#000000##FFFFFF
##B12FB61.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BA
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#B64671
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12fb6;
/* rgb */ color: rgb(177, 47, 182);
/* oklch */ color: oklch(55.8% 0.221 326.4);
Tailwind
colors: {
  custom: {
    50: '#cc75cc',
    500: '#b12fb6',
    950: '#000000',
  },
}
SCSS
$custom: #b12fb6;
$custom-light: #cc75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fb6",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 297.778,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55761,
    "c": 0.22096,
    "h": 326.4
  },
  "luminance": 0.14758
}

Semantic roles & 50–950 ramp

primary
#B12FB6
secondary
#7CC779
accent
#E2464B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B12FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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