#B126A3#B126A3

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

Color values

HEX#B126A3
RGBrgb(177, 38, 163)
HSLhsl(306, 65%, 42%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 78.5%, 7.9%, 30.6%)
CIE-LABlab(43.33, 66.48, -35.86)
CIE-LCHlch(43.33, 75.53, 331.66°)
OKLaboklab(54.01% 0.1917 -0.0986)
OKLCHoklch(54.01% 0.216 332.8)
XYZxyz(25.4356, 13.3799, 35.8862)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A3 #26B134
analogous
#7926B1 #B126A3 #B1265E
triadic
#B126A3 #A3B126 #26A3B1
tetradic
#B126A3 #B17926 #26B134 #265EB1
square
#B126A3 #B17926 #26B134 #265EB1
split-complementary
#B126A3 #5EB126 #26B179
monochromatic
#4C1046 #7F1B75 #B126A3 #D63FC6 #E071D5

Accessibility & contrast

On white

5.71
#B126A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B126A3
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A3#FFFFFF#000000##FFFFFF
##B126A31.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA6
Deuteranopia (green-blind)
#576DA0
Tritanopia (blue-blind)
#B93764
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b126a3;
/* rgb */ color: rgb(177, 38, 163);
/* oklch */ color: oklch(54.0% 0.216 332.8);
Tailwind
colors: {
  custom: {
    50: '#cc71bf',
    500: '#b126a3',
    950: '#000000',
  },
}
SCSS
$custom: #b126a3;
$custom-light: #cc71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a3",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 306.043,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.21557,
    "h": 332.8
  },
  "luminance": 0.13378
}

Semantic roles & 50–950 ramp

primary
#B126A3
secondary
#6BC775
accent
#E85140
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A3

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

Preview Lab → · Contrast checker → · Palette generator →

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