#B126A4#B126A4

#B126A4 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.216 H 332.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B126A4
RGBrgb(177, 38, 164)
HSLhsl(306, 65%, 42%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 78.5%, 7.3%, 30.6%)
CIE-LABlab(43.38, 66.63, -36.37)
CIE-LCHlch(43.38, 75.91, 331.37°)
OKLaboklab(54.07% 0.1917 -0.1001)
OKLCHoklch(54.07% 0.216 332.4)
XYZxyz(25.5255, 13.4159, 36.3599)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A4 #26B133
analogous
#7926B1 #B126A4 #B1265E
triadic
#B126A4 #A4B126 #26A4B1
tetradic
#B126A4 #B17926 #26B133 #265EB1
square
#B126A4 #B17926 #26B133 #265EB1
split-complementary
#B126A4 #5EB126 #26B179
monochromatic
#4C1047 #7F1B75 #B126A4 #D63FC8 #E071D6

Accessibility & contrast

On white

5.70
#B126A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B126A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126A4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A4#FFFFFF#000000##FFFFFF
##B126A41.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA7
Deuteranopia (green-blind)
#566DA1
Tritanopia (blue-blind)
#B93764
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b126a4;
/* rgb */ color: rgb(177, 38, 164);
/* oklch */ color: oklch(54.1% 0.216 332.4);
Tailwind
colors: {
  custom: {
    50: '#cc71bf',
    500: '#b126a4',
    950: '#000000',
  },
}
SCSS
$custom: #b126a4;
$custom-light: #cc71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a4",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 305.612,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54069,
    "c": 0.21627,
    "h": 332.4
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#B126A4
secondary
#6BC774
accent
#E85040
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A4

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

Preview Lab → · Contrast checker → · Palette generator →

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