#B226A1#B226A1

#B226A1 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.215 H 333.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B226A1
RGBrgb(178, 38, 161)
HSLhsl(307, 65%, 42%)
HSVhsv(307, 79%, 70%)
CMYKcmyk(0%, 78.7%, 9.6%, 30.2%)
CIE-LABlab(43.40, 66.39, -34.54)
CIE-LCHlch(43.40, 74.84, 332.51°)
OKLaboklab(54.06% 0.1926 -0.0948)
OKLCHoklch(54.06% 0.215 333.8)
XYZxyz(25.4865, 13.4267, 34.9606)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B226A1 #26B237
analogous
#7D26B2 #B226A1 #B2265B
triadic
#B226A1 #A1B226 #26A1B2
tetradic
#B226A1 #B27D26 #26B237 #265BB2
square
#B226A1 #B27D26 #26B237 #265BB2
split-complementary
#B226A1 #5BB226 #26B27D
monochromatic
#4D1046 #801B73 #B226A1 #D63FC4 #E172D3

Accessibility & contrast

On white

5.70
#B226A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B226A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B226A1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B226A1#FFFFFF#000000##FFFFFF
##B226A11.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#BA3563
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b226a1;
/* rgb */ color: rgb(178, 38, 161);
/* oklch */ color: oklch(54.1% 0.215 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd71bd',
    500: '#b226a1',
    950: '#000000',
  },
}
SCSS
$custom: #b226a1;
$custom-light: #cd71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b226a1",
  "rgb": {
    "r": 178,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 307.286,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.21467,
    "h": 333.8
  },
  "luminance": 0.13424
}

Semantic roles & 50–950 ramp

primary
#B226A1
secondary
#6CC877
accent
#E85440
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B226A1

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

Preview Lab → · Contrast checker → · Palette generator →

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