#B126AB#B126AB

#B126AB is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.221 H 330.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B126AB
RGBrgb(177, 38, 171)
HSLhsl(303, 65%, 42%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 78.5%, 3.4%, 30.6%)
CIE-LABlab(43.76, 67.70, -39.94)
CIE-LCHlch(43.76, 78.60, 329.46°)
OKLaboklab(54.46% 0.1918 -0.1104)
OKLCHoklch(54.46% 0.221 330.1)
XYZxyz(26.1751, 13.6757, 39.7813)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126AB #26B12C
analogous
#7226B1 #B126AB #B12666
triadic
#B126AB #ABB126 #26ABB1
tetradic
#B126AB #B17226 #26B12C #2666B1
square
#B126AB #B17226 #26B12C #2666B1
split-complementary
#B126AB #66B126 #26B172
monochromatic
#4C104A #7F1B7A #B126AB #D63FCF #E071DC

Accessibility & contrast

On white

5.62
#B126AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B126AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126AB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126AB#FFFFFF#000000##FFFFFF
##B126AB1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAE
Deuteranopia (green-blind)
#526EA8
Tritanopia (blue-blind)
#B83B68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b126ab;
/* rgb */ color: rgb(177, 38, 171);
/* oklch */ color: oklch(54.5% 0.221 330.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c4',
    500: '#b126ab',
    950: '#000000',
  },
}
SCSS
$custom: #b126ab;
$custom-light: #cc72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b126ab",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 302.59,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.22128,
    "h": 330.1
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#B126AB
secondary
#6BC76F
accent
#E84740
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B126AB

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

Preview Lab → · Contrast checker → · Palette generator →

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