#B12BB2#B12BB2

#B12BB2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.222 H 327.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B12BB2
RGBrgb(177, 43, 178)
HSLhsl(300, 61%, 43%)
HSVhsv(300, 76%, 70%)
CMYKcmyk(0.6%, 75.8%, 0%, 30.2%)
CIE-LABlab(44.65, 67.40, -42.67)
CIE-LCHlch(44.65, 79.77, 327.66°)
OKLaboklab(55.22% 0.1876 -0.1184)
OKLCHoklch(55.22% 0.222 327.7)
XYZxyz(27.0309, 14.2912, 43.4456)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12BB2 #2CB22B
analogous
#6E2BB2 #B12BB2 #B22B6F
triadic
#B12BB2 #B2B12B #2BB2B1
tetradic
#B12BB2 #B26E2B #2CB22B #2B6FB2
square
#B12BB2 #B26E2B #2CB22B #2B6FB2
split-complementary
#B12BB2 #6FB22B #2BB26E
monochromatic
#4F134F #801F81 #B12BB2 #D248D3 #DE79DF

Accessibility & contrast

On white

5.44
#B12BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B12BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12BB2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12BB2#FFFFFF#000000##FFFFFF
##B12BB21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045FB6
Deuteranopia (green-blind)
#5070AF
Tritanopia (blue-blind)
#B6426D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b12bb2;
/* rgb */ color: rgb(177, 43, 178);
/* oklch */ color: oklch(55.2% 0.222 327.7);
Tailwind
colors: {
  custom: {
    50: '#cc74c9',
    500: '#b12bb2',
    950: '#000000',
  },
}
SCSS
$custom: #b12bb2;
$custom-light: #cc74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b12bb2",
  "rgb": {
    "r": 177,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 299.556,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5522,
    "c": 0.22186,
    "h": 327.7
  },
  "luminance": 0.14289
}

Semantic roles & 50–950 ramp

primary
#B12BB2
secondary
#73C772
accent
#E44445
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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