#B126B0#B126B0

#B126B0 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.225 H 328.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B126B0
RGBrgb(177, 38, 176)
HSLhsl(300, 65%, 42%)
HSVhsv(300, 79%, 69%)
CMYKcmyk(0%, 78.5%, 0.6%, 30.6%)
CIE-LABlab(44.05, 68.48, -42.45)
CIE-LCHlch(44.05, 80.57, 328.21°)
OKLaboklab(54.76% 0.1917 -0.1177)
OKLCHoklch(54.76% 0.225 328.4)
XYZxyz(26.6608, 13.8700, 42.3388)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126B0 #26B127
analogous
#6D26B1 #B126B0 #B1266A
triadic
#B126B0 #B0B126 #26B0B1
tetradic
#B126B0 #B16D26 #26B127 #266AB1
square
#B126B0 #B16D26 #26B127 #266AB1
split-complementary
#B126B0 #6AB126 #26B16D
monochromatic
#4C104C #7F1B7E #B126B0 #D63FD5 #E071E0

Accessibility & contrast

On white

5.56
#B126B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B126B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126B0
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126B0#FFFFFF#000000##FFFFFF
##B126B01.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#506EAD
Tritanopia (blue-blind)
#B73E6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b126b0;
/* rgb */ color: rgb(177, 38, 176);
/* oklch */ color: oklch(54.8% 0.225 328.4);
Tailwind
colors: {
  custom: {
    50: '#cc72c8',
    500: '#b126b0',
    950: '#000000',
  },
}
SCSS
$custom: #b126b0;
$custom-light: #cc72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b126b0",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 300.432,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54755,
    "c": 0.22493,
    "h": 328.4
  },
  "luminance": 0.13868
}

Semantic roles & 50–950 ramp

primary
#B126B0
secondary
#6BC76C
accent
#E84140
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B126B0

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

Preview Lab → · Contrast checker → · Palette generator →

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