#B12CA9#B12CA9

#B12CA9 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.214 H 330.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B12CA9
RGBrgb(177, 44, 169)
HSLhsl(304, 60%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 75.1%, 4.5%, 30.6%)
CIE-LABlab(44.25, 65.66, -37.97)
CIE-LCHlch(44.25, 75.85, 329.96°)
OKLaboklab(54.78% 0.1868 -0.1047)
OKLCHoklch(54.78% 0.214 330.7)
XYZxyz(26.1935, 14.0151, 38.8540)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12CA9 #2CB134
analogous
#762CB1 #B12CA9 #B12C66
triadic
#B12CA9 #A9B12C #2CA9B1
tetradic
#B12CA9 #B1762C #2CB134 #2C66B1
square
#B12CA9 #B1762C #2CB134 #2C66B1
split-complementary
#B12CA9 #66B12C #2CB176
monochromatic
#4F144B #80207A #B12CA9 #D249C9 #DE7AD8

Accessibility & contrast

On white

5.52
#B12CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B12CA9
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12CA9#FFFFFF#000000##FFFFFF
##B12CA91.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5DAC
Deuteranopia (green-blind)
#566FA6
Tritanopia (blue-blind)
#B83E69
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b12ca9;
/* rgb */ color: rgb(177, 44, 169);
/* oklch */ color: oklch(54.8% 0.214 330.7);
Tailwind
colors: {
  custom: {
    50: '#cc74c3',
    500: '#b12ca9',
    950: '#000000',
  },
}
SCSS
$custom: #b12ca9;
$custom-light: #cc74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b12ca9",
  "rgb": {
    "r": 177,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 303.609,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54779,
    "c": 0.21416,
    "h": 330.7
  },
  "luminance": 0.14013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B12CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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