#B227AB#B227AB

#B227AB is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.221 H 330.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B227AB
RGBrgb(178, 39, 171)
HSLhsl(303, 64%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 78.1%, 3.9%, 30.2%)
CIE-LABlab(44.03, 67.63, -39.51)
CIE-LCHlch(44.03, 78.33, 329.71°)
OKLaboklab(54.68% 0.192 -0.1091)
OKLCHoklch(54.68% 0.221 330.4)
XYZxyz(26.4362, 13.8584, 39.8028)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227AB #27B22E
analogous
#7427B2 #B227AB #B22765
triadic
#B227AB #ABB227 #27ABB2
tetradic
#B227AB #B27427 #27B22E #2765B2
square
#B227AB #B27427 #27B22E #2765B2
split-complementary
#B227AB #65B227 #27B274
monochromatic
#4E114B #801C7B #B227AB #D541CE #E073DB

Accessibility & contrast

On white

5.57
#B227AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B227AB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227AB#FFFFFF#000000##FFFFFF
##B227AB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115CAE
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#B93B69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b227ab;
/* rgb */ color: rgb(178, 39, 171);
/* oklch */ color: oklch(54.7% 0.221 330.4);
Tailwind
colors: {
  custom: {
    50: '#cd72c4',
    500: '#b227ab',
    950: '#000000',
  },
}
SCSS
$custom: #b227ab;
$custom-light: #cd72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b227ab",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 303.022,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54685,
    "c": 0.22086,
    "h": 330.4
  },
  "luminance": 0.13856
}

Semantic roles & 50–950 ramp

primary
#B227AB
secondary
#6DC872
accent
#E74941
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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