#B228B0#B228B0

#B228B0 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 55.0% C 0.224 H 328.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B228B0
RGBrgb(178, 40, 176)
HSLhsl(301, 63%, 43%)
HSVhsv(301, 78%, 70%)
CMYKcmyk(0%, 77.5%, 1.1%, 30.2%)
CIE-LABlab(44.40, 68.14, -41.87)
CIE-LCHlch(44.40, 79.98, 328.43°)
OKLaboklab(55.04% 0.1912 -0.116)
OKLCHoklch(55.04% 0.224 328.7)
XYZxyz(26.9551, 14.1192, 42.3715)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228B0 #28B22A
analogous
#6F28B2 #B228B0 #B2286B
triadic
#B228B0 #B0B228 #28B0B2
tetradic
#B228B0 #B26F28 #28B22A #286BB2
square
#B228B0 #B26F28 #28B22A #286BB2
split-complementary
#B228B0 #6BB228 #28B26F
monochromatic
#4E124D #801D7F #B228B0 #D543D3 #E075DE

Accessibility & contrast

On white

5.49
#B228B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B228B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228B0
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228B0#FFFFFF#000000##FFFFFF
##B228B01.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045EB4
Deuteranopia (green-blind)
#516FAD
Tritanopia (blue-blind)
#B83E6C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b228b0;
/* rgb */ color: rgb(178, 40, 176);
/* oklch */ color: oklch(55.0% 0.224 328.7);
Tailwind
colors: {
  custom: {
    50: '#cd73c8',
    500: '#b228b0',
    950: '#000000',
  },
}
SCSS
$custom: #b228b0;
$custom-light: #cd73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b228b0",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 300.87,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55041,
    "c": 0.22361,
    "h": 328.7
  },
  "luminance": 0.14117
}

Semantic roles & 50–950 ramp

primary
#B228B0
secondary
#6FC770
accent
#E64441
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228B0

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

Preview Lab → · Contrast checker → · Palette generator →

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