#B126A2#B126A2

#B126A2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.215 H 333.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B126A2
RGBrgb(177, 38, 162)
HSLhsl(306, 65%, 42%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 78.5%, 8.5%, 30.6%)
CIE-LABlab(43.28, 66.33, -35.34)
CIE-LCHlch(43.28, 75.15, 331.95°)
OKLaboklab(53.96% 0.1917 -0.0971)
OKLCHoklch(53.96% 0.215 333.1)
XYZxyz(25.3463, 13.3442, 35.4162)
Luminance0.1334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126A2 #26B135
analogous
#7B26B1 #B126A2 #B1265C
triadic
#B126A2 #A2B126 #26A2B1
tetradic
#B126A2 #B17B26 #26B135 #265CB1
square
#B126A2 #B17B26 #26B135 #265CB1
split-complementary
#B126A2 #5CB126 #26B17B
monochromatic
#4C1046 #7F1B74 #B126A2 #D63FC5 #E071D4

Accessibility & contrast

On white

5.72
#B126A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B126A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126A2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126A2#FFFFFF#000000##FFFFFF
##B126A21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA5
Deuteranopia (green-blind)
#576D9F
Tritanopia (blue-blind)
#B93663
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b126a2;
/* rgb */ color: rgb(177, 38, 162);
/* oklch */ color: oklch(54.0% 0.215 333.1);
Tailwind
colors: {
  custom: {
    50: '#cc71be',
    500: '#b126a2',
    950: '#000000',
  },
}
SCSS
$custom: #b126a2;
$custom-light: #cc71be;
$custom-dark: #000000;
JSON
{
  "hex": "#b126a2",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 306.475,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53959,
    "c": 0.21486,
    "h": 333.1
  },
  "luminance": 0.13342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B126A2

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

Preview Lab → · Contrast checker → · Palette generator →

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