#B126A1#B126A1

#B126A1 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.214 H 333.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B126A1
RGBrgb(177, 38, 161)
HSLhsl(307, 65%, 42%)
HSVhsv(307, 79%, 69%)
CMYKcmyk(0%, 78.5%, 9%, 30.6%)
CIE-LABlab(43.22, 66.18, -34.83)
CIE-LCHlch(43.22, 74.78, 332.24°)
OKLaboklab(53.9% 0.1916 -0.0956)
OKLCHoklch(53.9% 0.214 333.5)
XYZxyz(25.2578, 13.3088, 34.9499)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A1 #26B136
analogous
#7B26B1 #B126A1 #B1265C
triadic
#B126A1 #A1B126 #26A1B1
tetradic
#B126A1 #B17B26 #26B136 #265CB1
square
#B126A1 #B17B26 #26B136 #265CB1
split-complementary
#B126A1 #5CB126 #26B17B
monochromatic
#4C1045 #7F1B73 #B126A1 #D63FC4 #E071D4

Accessibility & contrast

On white

5.74
#B126A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B126A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126A1
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A1#FFFFFF#000000##FFFFFF
##B126A11.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#586D9E
Tritanopia (blue-blind)
#B93563
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b126a1;
/* rgb */ color: rgb(177, 38, 161);
/* oklch */ color: oklch(53.9% 0.214 333.5);
Tailwind
colors: {
  custom: {
    50: '#cc71bd',
    500: '#b126a1',
    950: '#000000',
  },
}
SCSS
$custom: #b126a1;
$custom-light: #cc71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a1",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 306.906,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53904,
    "c": 0.21417,
    "h": 333.5
  },
  "luminance": 0.13307
}

Semantic roles & 50–950 ramp

primary
#B126A1
secondary
#6BC776
accent
#E85340
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A1

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

Preview Lab → · Contrast checker → · Palette generator →

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