#B228A1#B228A1

#B228A1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.213 H 333.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B228A1
RGBrgb(178, 40, 161)
HSLhsl(307, 63%, 43%)
HSVhsv(307, 78%, 70%)
CMYKcmyk(0%, 77.5%, 9.6%, 30.2%)
CIE-LABlab(43.59, 65.84, -34.24)
CIE-LCHlch(43.59, 74.21, 332.53°)
OKLaboklab(54.2% 0.191 -0.0939)
OKLCHoklch(54.2% 0.213 333.8)
XYZxyz(25.5521, 13.5580, 34.9825)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228A1 #28B239
analogous
#7E28B2 #B228A1 #B2285C
triadic
#B228A1 #A1B228 #28A1B2
tetradic
#B228A1 #B27E28 #28B239 #285CB2
square
#B228A1 #B27E28 #28B239 #285CB2
split-complementary
#B228A1 #5CB228 #28B27E
monochromatic
#4E1247 #801D74 #B228A1 #D543C3 #E075D3

Accessibility & contrast

On white

5.66
#B228A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B228A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228A1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228A1#FFFFFF#000000##FFFFFF
##B228A11.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235AA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#BA3663
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b228a1;
/* rgb */ color: rgb(178, 40, 161);
/* oklch */ color: oklch(54.2% 0.213 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd72bd',
    500: '#b228a1',
    950: '#000000',
  },
}
SCSS
$custom: #b228a1;
$custom-light: #cd72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b228a1",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 307.391,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.542,
    "c": 0.21282,
    "h": 333.8
  },
  "luminance": 0.13556
}

Semantic roles & 50–950 ramp

primary
#B228A1
secondary
#6FC779
accent
#E65641
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B228A1

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

Preview Lab → · Contrast checker → · Palette generator →

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