#B12AA5#B12AA5

#B12AA5 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.213 H 332.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#B12AA5
RGBrgb(177, 42, 165)
HSLhsl(305, 62%, 43%)
HSVhsv(305, 76%, 69%)
CMYKcmyk(0%, 76.3%, 6.8%, 30.6%)
CIE-LABlab(43.83, 65.64, -36.26)
CIE-LCHlch(43.83, 74.99, 331.08°)
OKLaboklab(54.41% 0.1885 -0.0998)
OKLCHoklch(54.41% 0.213 332.1)
XYZxyz(25.7510, 13.7218, 36.8823)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AA5 #2AB136
analogous
#792AB1 #B12AA5 #B12A62
triadic
#B12AA5 #A5B12A #2AA5B1
tetradic
#B12AA5 #B1792A #2AB136 #2A62B1
square
#B12AA5 #B1792A #2AB136 #2A62B1
split-complementary
#B12AA5 #62B12A #2AB179
monochromatic
#4E1349 #801E77 #B12AA5 #D345C6 #DF77D5

Accessibility & contrast

On white

5.61
#B12AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B12AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AA5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AA5#FFFFFF#000000##FFFFFF
##B12AA51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205CA8
Deuteranopia (green-blind)
#576EA2
Tritanopia (blue-blind)
#B93A66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12aa5;
/* rgb */ color: rgb(177, 42, 165);
/* oklch */ color: oklch(54.4% 0.213 332.1);
Tailwind
colors: {
  custom: {
    50: '#cc73c0',
    500: '#b12aa5',
    950: '#000000',
  },
}
SCSS
$custom: #b12aa5;
$custom-light: #cc73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aa5",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 305.333,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54406,
    "c": 0.21324,
    "h": 332.1
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#B12AA5
secondary
#70C678
accent
#E55143
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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