#B126C3#B126C3

#B126C3 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.9% C 0.239 H 322.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B126C3
RGBrgb(177, 38, 195)
HSLhsl(293, 67%, 46%)
HSVhsv(293, 81%, 76%)
CMYKcmyk(9.2%, 80.5%, 0%, 23.5%)
CIE-LABlab(45.19, 71.61, -51.78)
CIE-LCHlch(45.19, 88.36, 324.13°)
OKLaboklab(55.93% 0.1903 -0.1449)
OKLCHoklch(55.93% 0.239 322.7)
XYZxyz(28.6739, 14.6752, 52.9415)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126C3 #38C326
analogous
#6226C3 #B126C3 #C32686
triadic
#B126C3 #C3B126 #26C3B1
tetradic
#B126C3 #C36226 #38C326 #2686C3
square
#B126C3 #C36226 #38C326 #2686C3
split-complementary
#B126C3 #86C326 #26C362
monochromatic
#54125D #831C90 #B126C3 #CB4ADC #DA7EE6

Accessibility & contrast

On white

5.34
#B126C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B126C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126C3
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126C3#FFFFFF#000000##FFFFFF
##B126C31.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#4270C0
Tritanopia (blue-blind)
#B34876
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b126c3;
/* rgb */ color: rgb(177, 38, 195);
/* oklch */ color: oklch(55.9% 0.239 322.7);
Tailwind
colors: {
  custom: {
    50: '#cd73d6',
    500: '#b126c3',
    950: '#000000',
  },
}
SCSS
$custom: #b126c3;
$custom-light: #cd73d6;
$custom-dark: #000000;
JSON
{
  "hex": "#b126c3",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 195
  },
  "hsl": {
    "h": 293.121,
    "s": 67.382,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55928,
    "c": 0.23917,
    "h": 322.7
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#B126C3
secondary
#81CE77
accent
#EA3E51
background
#FDF7FD
surface
#FAEDFA
border
#D3C8D3
text
#140914
muted
#837B83

Preview Lab

Preview with #B126C3

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

Preview Lab → · Contrast checker → · Palette generator →

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