#B12CB8#B12CB8

#B12CB8 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.225 H 325.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B12CB8
RGBrgb(177, 44, 184)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 72%)
CMYKcmyk(3.8%, 76.1%, 0%, 27.8%)
CIE-LABlab(45.10, 68.08, -45.49)
CIE-LCHlch(45.10, 81.88, 326.25°)
OKLaboklab(55.65% 0.1866 -0.1266)
OKLCHoklch(55.65% 0.225 325.8)
XYZxyz(27.6833, 14.6111, 46.7002)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12CB8 #33B82C
analogous
#6B2CB8 #B12CB8 #B82C79
triadic
#B12CB8 #B8B12C #2CB8B1
tetradic
#B12CB8 #B86B2C #33B82C #2C79B8
square
#B12CB8 #B86B2C #33B82C #2C79B8
split-complementary
#B12CB8 #79B82C #2CB86B
monochromatic
#521455 #812087 #B12CB8 #CE4DD4 #DB7EE0

Accessibility & contrast

On white

5.35
#B12CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B12CB8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12CB8#FFFFFF#000000##FFFFFF
##B12CB81.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4D70B5
Tritanopia (blue-blind)
#B54571
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12cb8;
/* rgb */ color: rgb(177, 44, 184);
/* oklch */ color: oklch(55.7% 0.225 325.8);
Tailwind
colors: {
  custom: {
    50: '#cc74ce',
    500: '#b12cb8',
    950: '#000000',
  },
}
SCSS
$custom: #b12cb8;
$custom-light: #cc74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b12cb8",
  "rgb": {
    "r": 177,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 297,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55651,
    "c": 0.22546,
    "h": 325.8
  },
  "luminance": 0.14609
}

Semantic roles & 50–950 ramp

primary
#B12CB8
secondary
#7BC977
accent
#E5434B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B12CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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