#B126A6#B126A6

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

Color values

HEX#B126A6
RGBrgb(177, 38, 166)
HSLhsl(305, 65%, 42%)
HSVhsv(305, 79%, 69%)
CMYKcmyk(0%, 78.5%, 6.2%, 30.6%)
CIE-LABlab(43.49, 66.93, -37.39)
CIE-LCHlch(43.49, 76.67, 330.81°)
OKLaboklab(54.18% 0.1918 -0.103)
OKLCHoklch(54.18% 0.218 331.8)
XYZxyz(25.7076, 13.4887, 37.3186)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A6 #26B131
analogous
#7626B1 #B126A6 #B12661
triadic
#B126A6 #A6B126 #26A6B1
tetradic
#B126A6 #B17626 #26B131 #2661B1
square
#B126A6 #B17626 #26B131 #2661B1
split-complementary
#B126A6 #61B126 #26B176
monochromatic
#4C1047 #7F1B77 #B126A6 #D63FCA #E071D8

Accessibility & contrast

On white

5.68
#B126A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B126A6
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A6#FFFFFF#000000##FFFFFF
##B126A61.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#B93865
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b126a6;
/* rgb */ color: rgb(177, 38, 166);
/* oklch */ color: oklch(54.2% 0.218 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc71c1',
    500: '#b126a6',
    950: '#000000',
  },
}
SCSS
$custom: #b126a6;
$custom-light: #cc71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a6",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 304.748,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.21769,
    "h": 331.8
  },
  "luminance": 0.13487
}

Semantic roles & 50–950 ramp

primary
#B126A6
secondary
#6BC773
accent
#E84D40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B126A6

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

Preview Lab → · Contrast checker → · Palette generator →

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