#B126A5#B126A5

#B126A5 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.217 H 332.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B126A5
RGBrgb(177, 38, 165)
HSLhsl(305, 65%, 42%)
HSVhsv(305, 79%, 69%)
CMYKcmyk(0%, 78.5%, 6.8%, 30.6%)
CIE-LABlab(43.44, 66.78, -36.88)
CIE-LCHlch(43.44, 76.29, 331.09°)
OKLaboklab(54.12% 0.1918 -0.1015)
OKLCHoklch(54.12% 0.217 332.1)
XYZxyz(25.6162, 13.4521, 36.8374)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A5 #26B132
analogous
#7826B1 #B126A5 #B12660
triadic
#B126A5 #A5B126 #26A5B1
tetradic
#B126A5 #B17826 #26B132 #2660B1
square
#B126A5 #B17826 #26B132 #2660B1
split-complementary
#B126A5 #60B126 #26B178
monochromatic
#4C1047 #7F1B76 #B126A5 #D63FC9 #E071D7

Accessibility & contrast

On white

5.69
#B126A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B126A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126A5
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A5#FFFFFF#000000##FFFFFF
##B126A51.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA8
Deuteranopia (green-blind)
#566DA2
Tritanopia (blue-blind)
#B93865
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b126a5;
/* rgb */ color: rgb(177, 38, 165);
/* oklch */ color: oklch(54.1% 0.217 332.1);
Tailwind
colors: {
  custom: {
    50: '#cc71c0',
    500: '#b126a5',
    950: '#000000',
  },
}
SCSS
$custom: #b126a5;
$custom-light: #cc71c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a5",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 305.18,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54124,
    "c": 0.21698,
    "h": 332.1
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#B126A5
secondary
#6BC773
accent
#E84F40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A5

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

Preview Lab → · Contrast checker → · Palette generator →

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