#B126A7#B126A7

#B126A7 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.218 H 331.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B126A7
RGBrgb(177, 38, 167)
HSLhsl(304, 65%, 42%)
HSVhsv(304, 79%, 69%)
CMYKcmyk(0%, 78.5%, 5.6%, 30.6%)
CIE-LABlab(43.54, 67.08, -37.91)
CIE-LCHlch(43.54, 77.05, 330.53°)
OKLaboklab(54.24% 0.1918 -0.1045)
OKLCHoklch(54.24% 0.218 331.4)
XYZxyz(25.7996, 13.5255, 37.8036)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A7 #26B130
analogous
#7626B1 #B126A7 #B12661
triadic
#B126A7 #A7B126 #26A7B1
tetradic
#B126A7 #B17626 #26B130 #2661B1
square
#B126A7 #B17626 #26B130 #2661B1
split-complementary
#B126A7 #61B126 #26B176
monochromatic
#4C1048 #7F1B77 #B126A7 #D63FCB #E071D8

Accessibility & contrast

On white

5.67
#B126A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B126A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126A7
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A7#FFFFFF#000000##FFFFFF
##B126A71.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#B83966
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b126a7;
/* rgb */ color: rgb(177, 38, 167);
/* oklch */ color: oklch(54.2% 0.218 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc71c1',
    500: '#b126a7',
    950: '#000000',
  },
}
SCSS
$custom: #b126a7;
$custom-light: #cc71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a7",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 304.317,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54236,
    "c": 0.21841,
    "h": 331.4
  },
  "luminance": 0.13523
}

Semantic roles & 50–950 ramp

primary
#B126A7
secondary
#6BC772
accent
#E84C40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A7

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

Preview Lab → · Contrast checker → · Palette generator →

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