#B126C7#B126C7

#B126C7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.2% C 0.242 H 321.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B126C7
RGBrgb(177, 38, 199)
HSLhsl(292, 68%, 46%)
HSVhsv(292, 81%, 78%)
CMYKcmyk(11.1%, 80.9%, 0%, 22%)
CIE-LABlab(45.44, 72.29, -53.69)
CIE-LCHlch(45.44, 90.05, 323.40°)
OKLaboklab(56.19% 0.1898 -0.1505)
OKLCHoklch(56.19% 0.242 321.6)
XYZxyz(29.1322, 14.8585, 55.3553)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126C7 #3CC726
analogous
#6126C7 #B126C7 #C7268D
triadic
#B126C7 #C7B126 #26C7B1
tetradic
#B126C7 #C76126 #3CC726 #268DC7
square
#B126C7 #C76126 #3CC726 #268DC7
split-complementary
#B126C7 #8DC726 #26C761
monochromatic
#561260 #831C94 #B126C7 #C94DDD #D981E7

Accessibility & contrast

On white

5.29
#B126C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B126C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126C7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126C7#FFFFFF#000000##FFFFFF
##B126C71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#3E70C4
Tritanopia (blue-blind)
#B34A78
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b126c7;
/* rgb */ color: rgb(177, 38, 199);
/* oklch */ color: oklch(56.2% 0.242 321.6);
Tailwind
colors: {
  custom: {
    50: '#cd73d9',
    500: '#b126c7',
    950: '#000000',
  },
}
SCSS
$custom: #b126c7;
$custom-light: #cd73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b126c7",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 291.801,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.24224,
    "h": 321.6
  },
  "luminance": 0.14857
}

Semantic roles & 50–950 ramp

primary
#B126C7
secondary
#85CF79
accent
#EB3D55
background
#FDF7FD
surface
#FAEDFA
border
#D3C8D3
text
#140915
muted
#837B83

Preview Lab

Preview with #B126C7

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

Preview Lab → · Contrast checker → · Palette generator →

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