#B228A9#B228A9

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

Color values

HEX#B228A9
RGBrgb(178, 40, 169)
HSLhsl(304, 63%, 43%)
HSVhsv(304, 78%, 70%)
CMYKcmyk(0%, 77.5%, 5.1%, 30.2%)
CIE-LABlab(44.02, 67.05, -38.34)
CIE-LCHlch(44.02, 77.23, 330.24°)
OKLaboklab(54.64% 0.1912 -0.1057)
OKLCHoklch(54.64% 0.219 331.1)
XYZxyz(26.2803, 13.8493, 38.8175)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228A9 #28B231
analogous
#7628B2 #B228A9 #B22864
triadic
#B228A9 #A9B228 #28A9B2
tetradic
#B228A9 #B27628 #28B231 #2864B2
square
#B228A9 #B27628 #28B231 #2864B2
split-complementary
#B228A9 #64B228 #28B276
monochromatic
#4E124A #801D7A #B228A9 #D543CB #E075D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B228A9#FFFFFF#000000##FFFFFF
##B228A91.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)
#185CAC
Deuteranopia (green-blind)
#556FA6
Tritanopia (blue-blind)
#B93B68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b228a9;
/* rgb */ color: rgb(178, 40, 169);
/* oklch */ color: oklch(54.6% 0.218 331.1);
Tailwind
colors: {
  custom: {
    50: '#cd72c3',
    500: '#b228a9',
    950: '#000000',
  },
}
SCSS
$custom: #b228a9;
$custom-light: #cd72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b228a9",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 303.913,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5464,
    "c": 0.2185,
    "h": 331.1
  },
  "luminance": 0.13847
}

Semantic roles & 50–950 ramp

primary
#B228A9
secondary
#6FC774
accent
#E64C41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B228A9

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

Preview Lab → · Contrast checker → · Palette generator →

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