#B227A9#B227A9

#B227A9 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.219 H 331.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#B227A9
RGBrgb(178, 39, 169)
HSLhsl(304, 64%, 43%)
HSVhsv(304, 78%, 70%)
CMYKcmyk(0%, 78.1%, 5.1%, 30.2%)
CIE-LABlab(43.92, 67.33, -38.49)
CIE-LCHlch(43.92, 77.55, 330.24°)
OKLaboklab(54.57% 0.192 -0.1062)
OKLCHoklch(54.57% 0.219 331.1)
XYZxyz(26.2470, 13.7827, 38.8064)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227A9 #27B230
analogous
#7627B2 #B227A9 #B22763
triadic
#B227A9 #A9B227 #27A9B2
tetradic
#B227A9 #B27627 #27B230 #2763B2
square
#B227A9 #B27627 #27B230 #2763B2
split-complementary
#B227A9 #63B227 #27B276
monochromatic
#4E114A #801C79 #B227A9 #D541CC #E073D9

Accessibility & contrast

On white

5.59
#B227A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B227A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227A9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227A9#FFFFFF#000000##FFFFFF
##B227A91.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165CAC
Deuteranopia (green-blind)
#556EA6
Tritanopia (blue-blind)
#B93A67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b227a9;
/* rgb */ color: rgb(178, 39, 169);
/* oklch */ color: oklch(54.6% 0.219 331.1);
Tailwind
colors: {
  custom: {
    50: '#cd72c3',
    500: '#b227a9',
    950: '#000000',
  },
}
SCSS
$custom: #b227a9;
$custom-light: #cd72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b227a9",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 303.885,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54571,
    "c": 0.21942,
    "h": 331.1
  },
  "luminance": 0.13781
}

Semantic roles & 50–950 ramp

primary
#B227A9
secondary
#6DC873
accent
#E74C41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B227A9

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

Preview Lab → · Contrast checker → · Palette generator →

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