#B12AA8#B12AA8

#B12AA8 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.215 H 331.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B12AA8
RGBrgb(177, 42, 168)
HSLhsl(304, 62%, 43%)
HSVhsv(304, 76%, 69%)
CMYKcmyk(0%, 76.3%, 5.1%, 30.6%)
CIE-LABlab(43.99, 66.10, -37.79)
CIE-LCHlch(43.99, 76.15, 330.24°)
OKLaboklab(54.57% 0.1885 -0.1042)
OKLCHoklch(54.57% 0.215 331.1)
XYZxyz(26.0273, 13.8323, 38.3373)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AA8 #2AB133
analogous
#762AB1 #B12AA8 #B12A64
triadic
#B12AA8 #A8B12A #2AA8B1
tetradic
#B12AA8 #B1762A #2AB133 #2A64B1
square
#B12AA8 #B1762A #2AB133 #2A64B1
split-complementary
#B12AA8 #64B12A #2AB176
monochromatic
#4E134A #801E79 #B12AA8 #D345C9 #DF77D8

Accessibility & contrast

On white

5.58
#B12AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B12AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AA8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AA8#FFFFFF#000000##FFFFFF
##B12AA81.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#566EA5
Tritanopia (blue-blind)
#B83C68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12aa8;
/* rgb */ color: rgb(177, 42, 168);
/* oklch */ color: oklch(54.6% 0.215 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc73c2',
    500: '#b12aa8',
    950: '#000000',
  },
}
SCSS
$custom: #b12aa8;
$custom-light: #cc73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aa8",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 304,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54573,
    "c": 0.21541,
    "h": 331.1
  },
  "luminance": 0.1383
}

Semantic roles & 50–950 ramp

primary
#B12AA8
secondary
#70C676
accent
#E54E43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B12AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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