#B228A0#B228A0

#B228A0 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.212 H 334.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B228A0
RGBrgb(178, 40, 160)
HSLhsl(308, 63%, 43%)
HSVhsv(308, 78%, 70%)
CMYKcmyk(0%, 77.5%, 10.1%, 30.2%)
CIE-LABlab(43.54, 65.69, -33.72)
CIE-LCHlch(43.54, 73.84, 332.83°)
OKLaboklab(54.15% 0.1909 -0.0924)
OKLCHoklch(54.15% 0.212 334.2)
XYZxyz(25.4643, 13.5229, 34.5199)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228A0 #28B23A
analogous
#7F28B2 #B228A0 #B2285B
triadic
#B228A0 #A0B228 #28A0B2
tetradic
#B228A0 #B27F28 #28B23A #285BB2
square
#B228A0 #B27F28 #28B23A #285BB2
split-complementary
#B228A0 #5BB228 #28B27F
monochromatic
#4E1246 #801D73 #B228A0 #D543C2 #E075D2

Accessibility & contrast

On white

5.67
#B228A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B228A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228A0
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228A0#FFFFFF#000000##FFFFFF
##B228A01.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255AA3
Deuteranopia (green-blind)
#5A6E9D
Tritanopia (blue-blind)
#BB3663
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b228a0;
/* rgb */ color: rgb(178, 40, 160);
/* oklch */ color: oklch(54.1% 0.212 334.2);
Tailwind
colors: {
  custom: {
    50: '#cd72bc',
    500: '#b228a0',
    950: '#000000',
  },
}
SCSS
$custom: #b228a0;
$custom-light: #cd72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b228a0",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 307.826,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54146,
    "c": 0.21213,
    "h": 334.2
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#B228A0
secondary
#6FC77A
accent
#E65741
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B228A0

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

Preview Lab → · Contrast checker → · Palette generator →

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