#B126AC#B126AC

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

Color values

HEX#B126AC
RGBrgb(177, 38, 172)
HSLhsl(302, 65%, 42%)
HSVhsv(302, 79%, 69%)
CMYKcmyk(0%, 78.5%, 2.8%, 30.6%)
CIE-LABlab(43.82, 67.85, -40.44)
CIE-LCHlch(43.82, 78.99, 329.20°)
OKLaboklab(54.52% 0.1918 -0.1119)
OKLCHoklch(54.52% 0.222 329.7)
XYZxyz(26.2708, 13.7140, 40.2851)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126AC #26B12B
analogous
#7026B1 #B126AC #B12667
triadic
#B126AC #ACB126 #26ACB1
tetradic
#B126AC #B17026 #26B12B #2667B1
square
#B126AC #B17026 #26B12B #2667B1
split-complementary
#B126AC #67B126 #26B170
monochromatic
#4C104A #7F1B7B #B126AC #D63FD0 #E071DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B126AC#FFFFFF#000000##FFFFFF
##B126AC1.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)
#095CAF
Deuteranopia (green-blind)
#526EA9
Tritanopia (blue-blind)
#B83C69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b126ac;
/* rgb */ color: rgb(177, 38, 172);
/* oklch */ color: oklch(54.5% 0.222 329.7);
Tailwind
colors: {
  custom: {
    50: '#cc72c5',
    500: '#b126ac',
    950: '#000000',
  },
}
SCSS
$custom: #b126ac;
$custom-light: #cc72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b126ac",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 172
  },
  "hsl": {
    "h": 302.158,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.22201,
    "h": 329.7
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B126AC

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

Preview Lab → · Contrast checker → · Palette generator →

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