#B228B3#B228B3

#B228B3 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.2% C 0.226 H 327.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B228B3
RGBrgb(178, 40, 179)
HSLhsl(300, 63%, 43%)
HSVhsv(300, 78%, 70%)
CMYKcmyk(0.6%, 77.7%, 0%, 29.8%)
CIE-LABlab(44.57, 68.62, -43.37)
CIE-LCHlch(44.57, 81.18, 327.71°)
OKLaboklab(55.22% 0.1911 -0.1204)
OKLCHoklch(55.22% 0.226 327.8)
XYZxyz(27.2552, 14.2393, 43.9520)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228B3 #29B328
analogous
#6C28B3 #B228B3 #B3286F
triadic
#B228B3 #B3B228 #28B3B2
tetradic
#B228B3 #B36C28 #29B328 #286FB3
square
#B228B3 #B36C28 #29B328 #286FB3
split-complementary
#B228B3 #6FB328 #28B36C
monochromatic
#4F124F #801D81 #B228B3 #D443D5 #DF75E0

Accessibility & contrast

On white

5.46
#B228B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B228B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228B3
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228B3#FFFFFF#000000##FFFFFF
##B228B31.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#4F6FB0
Tritanopia (blue-blind)
#B8406D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b228b3;
/* rgb */ color: rgb(178, 40, 179);
/* oklch */ color: oklch(55.2% 0.226 327.8);
Tailwind
colors: {
  custom: {
    50: '#cd73ca',
    500: '#b228b3',
    950: '#000000',
  },
}
SCSS
$custom: #b228b3;
$custom-light: #cd73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b228b3",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 299.568,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55218,
    "c": 0.22582,
    "h": 327.8
  },
  "luminance": 0.14237
}

Semantic roles & 50–950 ramp

primary
#B228B3
secondary
#70C86F
accent
#E64142
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228B3

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

Preview Lab → · Contrast checker → · Palette generator →

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