#B228AE#B228AE

#B228AE is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.222 H 329.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B228AE
RGBrgb(178, 40, 174)
HSLhsl(302, 63%, 43%)
HSVhsv(302, 78%, 70%)
CMYKcmyk(0%, 77.5%, 2.2%, 30.2%)
CIE-LABlab(44.29, 67.83, -40.87)
CIE-LCHlch(44.29, 79.19, 328.93°)
OKLaboklab(54.93% 0.1912 -0.1131)
OKLCHoklch(54.93% 0.222 329.4)
XYZxyz(26.7587, 14.0406, 41.3370)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228AE #28B22C
analogous
#7128B2 #B228AE #B22869
triadic
#B228AE #AEB228 #28AEB2
tetradic
#B228AE #B27128 #28B22C #2869B2
square
#B228AE #B27128 #28B22C #2869B2
split-complementary
#B228AE #69B228 #28B271
monochromatic
#4E124C #801D7D #B228AE #D543D0 #E075DD

Accessibility & contrast

On white

5.51
#B228AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B228AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228AE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228AE#FFFFFF#000000##FFFFFF
##B228AE1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5DB2
Deuteranopia (green-blind)
#526FAB
Tritanopia (blue-blind)
#B83D6A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b228ae;
/* rgb */ color: rgb(178, 40, 174);
/* oklch */ color: oklch(54.9% 0.222 329.4);
Tailwind
colors: {
  custom: {
    50: '#cd73c7',
    500: '#b228ae',
    950: '#000000',
  },
}
SCSS
$custom: #b228ae;
$custom-light: #cd73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b228ae",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 301.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54925,
    "c": 0.22214,
    "h": 329.4
  },
  "luminance": 0.14039
}

Semantic roles & 50–950 ramp

primary
#B228AE
secondary
#6FC771
accent
#E64641
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228AE

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

Preview Lab → · Contrast checker → · Palette generator →

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