#B229B2#B229B2

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

Color values

HEX#B229B2
RGBrgb(178, 41, 178)
HSLhsl(300, 63%, 43%)
HSVhsv(300, 77%, 70%)
CMYKcmyk(0%, 77%, 0%, 30.2%)
CIE-LABlab(44.61, 68.18, -42.72)
CIE-LCHlch(44.61, 80.46, 327.93°)
OKLaboklab(55.23% 0.1903 -0.1185)
OKLCHoklch(55.23% 0.224 328.1)
XYZxyz(27.1886, 14.2672, 43.4327)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B229B2 #29B229
analogous
#6D29B2 #B229B2 #B2296D
triadic
#B229B2 #B2B229 #29B2B2
tetradic
#B229B2 #B26D29 #29B229 #296DB2
square
#B229B2 #B26D29 #29B229 #296DB2
split-complementary
#B229B2 #6DB229 #29B26D
monochromatic
#4F124F #801E80 #B229B2 #D444D4 #DF76DF

Accessibility & contrast

On white

5.45
#B229B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B229B2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B229B2#FFFFFF#000000##FFFFFF
##B229B21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b229b2;
/* rgb */ color: rgb(178, 41, 178);
/* oklch */ color: oklch(55.2% 0.224 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd73c9',
    500: '#b229b2',
    950: '#000000',
  },
}
SCSS
$custom: #b229b2;
$custom-light: #cd73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b229b2",
  "rgb": {
    "r": 178,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55228,
    "c": 0.22419,
    "h": 328.1
  },
  "luminance": 0.14265
}

Semantic roles & 50–950 ramp

primary
#B229B2
secondary
#70C770
accent
#E64242
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B229B2

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

Preview Lab → · Contrast checker → · Palette generator →

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