#B12CA8#B12CA8

#B12CA8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.213 H 331.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B12CA8
RGBrgb(177, 44, 168)
HSLhsl(304, 60%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 75.1%, 5.1%, 30.6%)
CIE-LABlab(44.20, 65.50, -37.46)
CIE-LCHlch(44.20, 75.46, 330.23°)
OKLaboklab(54.72% 0.1868 -0.1033)
OKLCHoklch(54.72% 0.213 331.1)
XYZxyz(26.1000, 13.9777, 38.3615)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12CA8 #2CB135
analogous
#772CB1 #B12CA8 #B12C65
triadic
#B12CA8 #A8B12C #2CA8B1
tetradic
#B12CA8 #B1772C #2CB135 #2C65B1
square
#B12CA8 #B1772C #2CB135 #2C65B1
split-complementary
#B12CA8 #65B12C #2CB177
monochromatic
#4F144B #802079 #B12CA8 #D249C8 #DE7AD7

Accessibility & contrast

On white

5.53
#B12CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B12CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12CA8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12CA8#FFFFFF#000000##FFFFFF
##B12CA81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#B83D68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12ca8;
/* rgb */ color: rgb(177, 44, 168);
/* oklch */ color: oklch(54.7% 0.213 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc74c2',
    500: '#b12ca8',
    950: '#000000',
  },
}
SCSS
$custom: #b12ca8;
$custom-light: #cc74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b12ca8",
  "rgb": {
    "r": 177,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 304.06,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54723,
    "c": 0.21343,
    "h": 331.1
  },
  "luminance": 0.13976
}

Semantic roles & 50–950 ramp

primary
#B12CA8
secondary
#73C678
accent
#E34F44
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B12CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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