#B12FB8#B12FB8

#B12FB8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.223 H 325.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B12FB8
RGBrgb(177, 47, 184)
HSLhsl(297, 59%, 45%)
HSVhsv(297, 74%, 72%)
CMYKcmyk(3.8%, 74.5%, 0%, 27.8%)
CIE-LABlab(45.42, 67.16, -44.98)
CIE-LCHlch(45.42, 80.83, 326.19°)
OKLaboklab(55.88% 0.184 -0.1251)
OKLCHoklch(55.88% 0.223 325.8)
XYZxyz(27.7991, 14.8427, 46.7388)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FB8 #36B82F
analogous
#6C2FB8 #B12FB8 #B82F7B
triadic
#B12FB8 #B8B12F #2FB8B1
tetradic
#B12FB8 #B86C2F #36B82F #2F7BB8
square
#B12FB8 #B86C2F #36B82F #2F7BB8
split-complementary
#B12FB8 #7BB82F #2FB86C
monochromatic
#531657 #822387 #B12FB8 #CC52D3 #DA82DF

Accessibility & contrast

On white

5.29
#B12FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B12FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FB8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FB8#FFFFFF#000000##FFFFFF
##B12FB81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#B54772
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12fb8;
/* rgb */ color: rgb(177, 47, 184);
/* oklch */ color: oklch(55.9% 0.223 325.8);
Tailwind
colors: {
  custom: {
    50: '#cc76ce',
    500: '#b12fb8',
    950: '#000000',
  },
}
SCSS
$custom: #b12fb8;
$custom-light: #cc76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fb8",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 296.934,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5588,
    "c": 0.22251,
    "h": 325.8
  },
  "luminance": 0.14841
}

Semantic roles & 50–950 ramp

primary
#B12FB8
secondary
#7FC87B
accent
#E2454D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B12FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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