#B228AA#B228AA

#B228AA is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.219 H 330.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B228AA
RGBrgb(178, 40, 170)
HSLhsl(303, 63%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 77.5%, 4.5%, 30.2%)
CIE-LABlab(44.07, 67.20, -38.85)
CIE-LCHlch(44.07, 77.62, 329.97°)
OKLaboklab(54.7% 0.1912 -0.1072)
OKLCHoklch(54.7% 0.219 330.7)
XYZxyz(26.3745, 13.8870, 39.3138)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228AA #28B230
analogous
#7528B2 #B228AA #B22865
triadic
#B228AA #AAB228 #28AAB2
tetradic
#B228AA #B27528 #28B230 #2865B2
square
#B228AA #B27528 #28B230 #2865B2
split-complementary
#B228AA #65B228 #28B275
monochromatic
#4E124B #801D7A #B228AA #D543CC #E075DA

Accessibility & contrast

On white

5.56
#B228AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B228AA
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228AA#FFFFFF#000000##FFFFFF
##B228AA1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165CAD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#B93B68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b228aa;
/* rgb */ color: rgb(178, 40, 170);
/* oklch */ color: oklch(54.7% 0.219 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd72c4',
    500: '#b228aa',
    950: '#000000',
  },
}
SCSS
$custom: #b228aa;
$custom-light: #cd72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b228aa",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 303.478,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54697,
    "c": 0.21923,
    "h": 330.7
  },
  "luminance": 0.13885
}

Semantic roles & 50–950 ramp

primary
#B228AA
secondary
#6FC774
accent
#E64B41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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