#B126AF#B126AF

#B126AF is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.224 H 328.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B126AF
RGBrgb(177, 38, 175)
HSLhsl(301, 65%, 42%)
HSVhsv(301, 79%, 69%)
CMYKcmyk(0%, 78.5%, 1.1%, 30.6%)
CIE-LABlab(43.99, 68.33, -41.95)
CIE-LCHlch(43.99, 80.18, 328.45°)
OKLaboklab(54.7% 0.1917 -0.1162)
OKLCHoklch(54.7% 0.224 328.8)
XYZxyz(26.5622, 13.8305, 41.8197)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126AF #26B128
analogous
#6D26B1 #B126AF #B1266A
triadic
#B126AF #AFB126 #26AFB1
tetradic
#B126AF #B16D26 #26B128 #266AB1
square
#B126AF #B16D26 #26B128 #266AB1
split-complementary
#B126AF #6AB126 #26B16D
monochromatic
#4C104B #7F1B7D #B126AF #D63FD4 #E071DF

Accessibility & contrast

On white

5.58
#B126AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B126AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B126AF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126AF#FFFFFF#000000##FFFFFF
##B126AF1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#506EAC
Tritanopia (blue-blind)
#B73D6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b126af;
/* rgb */ color: rgb(177, 38, 175);
/* oklch */ color: oklch(54.7% 0.224 328.8);
Tailwind
colors: {
  custom: {
    50: '#cc72c7',
    500: '#b126af',
    950: '#000000',
  },
}
SCSS
$custom: #b126af;
$custom-light: #cc72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b126af",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 300.863,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54696,
    "c": 0.22419,
    "h": 328.8
  },
  "luminance": 0.13828
}

Semantic roles & 50–950 ramp

primary
#B126AF
secondary
#6BC76D
accent
#E84340
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B126AF

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

Preview Lab → · Contrast checker → · Palette generator →

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