#B228AC#B228AC

#B228AC is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.221 H 330.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B228AC
RGBrgb(178, 40, 172)
HSLhsl(303, 63%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 77.5%, 3.4%, 30.2%)
CIE-LABlab(44.18, 67.51, -39.86)
CIE-LCHlch(44.18, 78.40, 329.44°)
OKLaboklab(54.81% 0.1912 -0.1102)
OKLCHoklch(54.81% 0.221 330.1)
XYZxyz(26.5652, 13.9632, 40.3178)
Luminance0.1396 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228AC #28B22E
analogous
#7328B2 #B228AC #B22867
triadic
#B228AC #ACB228 #28ACB2
tetradic
#B228AC #B27328 #28B22E #2867B2
square
#B228AC #B27328 #28B22E #2867B2
split-complementary
#B228AC #67B228 #28B273
monochromatic
#4E124B #801D7C #B228AC #D543CE #E075DB

Accessibility & contrast

On white

5.54
#B228AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B228AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228AC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228AC#FFFFFF#000000##FFFFFF
##B228AC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115DAF
Deuteranopia (green-blind)
#546FA9
Tritanopia (blue-blind)
#B93C69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b228ac;
/* rgb */ color: rgb(178, 40, 172);
/* oklch */ color: oklch(54.8% 0.221 330.1);
Tailwind
colors: {
  custom: {
    50: '#cd72c5',
    500: '#b228ac',
    950: '#000000',
  },
}
SCSS
$custom: #b228ac;
$custom-light: #cd72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b228ac",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 302.609,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5481,
    "c": 0.22068,
    "h": 330.1
  },
  "luminance": 0.13961
}

Semantic roles & 50–950 ramp

primary
#B228AC
secondary
#6FC772
accent
#E64941
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228AC

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

Preview Lab → · Contrast checker → · Palette generator →

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