#B12AA7#B12AA7

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

Color values

HEX#B12AA7
RGBrgb(177, 42, 167)
HSLhsl(304, 62%, 43%)
HSVhsv(304, 76%, 69%)
CMYKcmyk(0%, 76.3%, 5.6%, 30.6%)
CIE-LABlab(43.94, 65.95, -37.28)
CIE-LCHlch(43.94, 75.76, 330.52°)
OKLaboklab(54.52% 0.1885 -0.1027)
OKLCHoklch(54.52% 0.215 331.4)
XYZxyz(25.9345, 13.7952, 37.8485)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AA7 #2AB134
analogous
#772AB1 #B12AA7 #B12A64
triadic
#B12AA7 #A7B12A #2AA7B1
tetradic
#B12AA7 #B1772A #2AB134 #2A64B1
square
#B12AA7 #B1772A #2AB134 #2A64B1
split-complementary
#B12AA7 #64B12A #2AB177
monochromatic
#4E134A #801E78 #B12AA7 #D345C8 #DF77D7

Accessibility & contrast

On white

5.59
#B12AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B12AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AA7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AA7#FFFFFF#000000##FFFFFF
##B12AA71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#566EA4
Tritanopia (blue-blind)
#B83B67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12aa7;
/* rgb */ color: rgb(177, 42, 167);
/* oklch */ color: oklch(54.5% 0.215 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc73c1',
    500: '#b12aa7',
    950: '#000000',
  },
}
SCSS
$custom: #b12aa7;
$custom-light: #cc73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aa7",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 304.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54517,
    "c": 0.21468,
    "h": 331.4
  },
  "luminance": 0.13793
}

Semantic roles & 50–950 ramp

primary
#B12AA7
secondary
#70C677
accent
#E54F43
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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