#B228B2#B228B2

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

Color values

HEX#B228B2
RGBrgb(178, 40, 178)
HSLhsl(300, 63%, 43%)
HSVhsv(300, 78%, 70%)
CMYKcmyk(0%, 77.5%, 0%, 30.2%)
CIE-LABlab(44.52, 68.46, -42.87)
CIE-LCHlch(44.52, 80.78, 327.94°)
OKLaboklab(55.16% 0.1911 -0.1189)
OKLCHoklch(55.16% 0.225 328.1)
XYZxyz(27.1544, 14.1989, 43.4213)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228B2 #28B228
analogous
#6D28B2 #B228B2 #B2286D
triadic
#B228B2 #B2B228 #28B2B2
tetradic
#B228B2 #B26D28 #28B228 #286DB2
square
#B228B2 #B26D28 #28B228 #286DB2
split-complementary
#B228B2 #6DB228 #28B26D
monochromatic
#4E124E #801D80 #B228B2 #D543D5 #E075E0

Accessibility & contrast

On white

5.47
#B228B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B228B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228B2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228B2#FFFFFF#000000##FFFFFF
##B228B21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#506FAF
Tritanopia (blue-blind)
#B8406D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b228b2;
/* rgb */ color: rgb(178, 40, 178);
/* oklch */ color: oklch(55.2% 0.225 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd73c9',
    500: '#b228b2',
    950: '#000000',
  },
}
SCSS
$custom: #b228b2;
$custom-light: #cd73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b228b2",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55159,
    "c": 0.22509,
    "h": 328.1
  },
  "luminance": 0.14197
}

Semantic roles & 50–950 ramp

primary
#B228B2
secondary
#6FC76F
accent
#E64141
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B228B2

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

Preview Lab → · Contrast checker → · Palette generator →

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