#B228AB#B228AB

#B228AB is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.220 H 330.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B228AB
RGBrgb(178, 40, 171)
HSLhsl(303, 63%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 77.5%, 3.9%, 30.2%)
CIE-LABlab(44.13, 67.36, -39.35)
CIE-LCHlch(44.13, 78.01, 329.70°)
OKLaboklab(54.75% 0.1912 -0.1087)
OKLCHoklch(54.75% 0.22 330.4)
XYZxyz(26.4695, 13.9250, 39.8139)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228AB #28B22F
analogous
#7428B2 #B228AB #B22866
triadic
#B228AB #ABB228 #28ABB2
tetradic
#B228AB #B27428 #28B22F #2866B2
square
#B228AB #B27428 #28B22F #2866B2
split-complementary
#B228AB #66B228 #28B274
monochromatic
#4E124B #801D7B #B228AB #D543CD #E075DA

Accessibility & contrast

On white

5.55
#B228AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B228AB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228AB#FFFFFF#000000##FFFFFF
##B228AB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAE
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#B93C69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b228ab;
/* rgb */ color: rgb(178, 40, 171);
/* oklch */ color: oklch(54.8% 0.220 330.4);
Tailwind
colors: {
  custom: {
    50: '#cd72c4',
    500: '#b228ab',
    950: '#000000',
  },
}
SCSS
$custom: #b228ab;
$custom-light: #cd72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b228ab",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 303.043,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54753,
    "c": 0.21996,
    "h": 330.4
  },
  "luminance": 0.13923
}

Semantic roles & 50–950 ramp

primary
#B228AB
secondary
#6FC773
accent
#E64A41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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