#B126B1#B126B1

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

Color values

HEX#B126B1
RGBrgb(177, 38, 177)
HSLhsl(300, 65%, 42%)
HSVhsv(300, 79%, 69%)
CMYKcmyk(0%, 78.5%, 0%, 30.6%)
CIE-LABlab(44.10, 68.64, -42.95)
CIE-LCHlch(44.10, 80.97, 327.96°)
OKLaboklab(54.81% 0.1916 -0.1192)
OKLCHoklch(54.81% 0.226 328.1)
XYZxyz(26.7601, 13.9097, 42.8619)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126B1 #26B126
analogous
#6C26B1 #B126B1 #B1266C
triadic
#B126B1 #B1B126 #26B1B1
tetradic
#B126B1 #B16C26 #26B126 #266CB1
square
#B126B1 #B16C26 #26B126 #266CB1
split-complementary
#B126B1 #6CB126 #26B16C
monochromatic
#4C104C #7F1B7F #B126B1 #D63FD6 #E071E0

Accessibility & contrast

On white

5.55
#B126B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B126B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126B1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126B1#FFFFFF#000000##FFFFFF
##B126B11.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#4F6EAE
Tritanopia (blue-blind)
#B73E6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b126b1;
/* rgb */ color: rgb(177, 38, 177);
/* oklch */ color: oklch(54.8% 0.226 328.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c9',
    500: '#b126b1',
    950: '#000000',
  },
}
SCSS
$custom: #b126b1;
$custom-light: #cc72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b126b1",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 300,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54814,
    "c": 0.22566,
    "h": 328.1
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

primary
#B126B1
secondary
#6BC76B
accent
#E84040
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B126B1

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

Preview Lab → · Contrast checker → · Palette generator →

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