#B227AC#B227AC

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

Color values

HEX#B227AC
RGBrgb(178, 39, 172)
HSLhsl(303, 64%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 78.1%, 3.4%, 30.2%)
CIE-LABlab(44.08, 67.79, -40.01)
CIE-LCHlch(44.08, 78.72, 329.45°)
OKLaboklab(54.74% 0.192 -0.1106)
OKLCHoklch(54.74% 0.222 330.1)
XYZxyz(26.5319, 13.8967, 40.3067)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227AC #27B22D
analogous
#7327B2 #B227AC #B22766
triadic
#B227AC #ACB227 #27ACB2
tetradic
#B227AC #B27327 #27B22D #2766B2
square
#B227AC #B27327 #27B22D #2766B2
split-complementary
#B227AC #66B227 #27B273
monochromatic
#4E114B #801C7B #B227AC #D541CF #E073DC

Accessibility & contrast

On white

5.56
#B227AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B227AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227AC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227AC#FFFFFF#000000##FFFFFF
##B227AC1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAF
Deuteranopia (green-blind)
#536FA9
Tritanopia (blue-blind)
#B93C69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b227ac;
/* rgb */ color: rgb(178, 39, 172);
/* oklch */ color: oklch(54.7% 0.222 330.1);
Tailwind
colors: {
  custom: {
    50: '#cd72c5',
    500: '#b227ac',
    950: '#000000',
  },
}
SCSS
$custom: #b227ac;
$custom-light: #cd72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b227ac",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 302.59,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54742,
    "c": 0.22159,
    "h": 330.1
  },
  "luminance": 0.13895
}

Semantic roles & 50–950 ramp

primary
#B227AC
secondary
#6DC871
accent
#E74841
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B227AC

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

Preview Lab → · Contrast checker → · Palette generator →

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