#B229A7#B229A7

#B229A7 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.216 H 331.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B229A7
RGBrgb(178, 41, 167)
HSLhsl(305, 63%, 43%)
HSVhsv(305, 77%, 70%)
CMYKcmyk(0%, 77%, 6.2%, 30.2%)
CIE-LABlab(44.01, 66.46, -37.16)
CIE-LCHlch(44.01, 76.14, 330.79°)
OKLaboklab(54.6% 0.1904 -0.1024)
OKLCHoklch(54.6% 0.216 331.7)
XYZxyz(26.1281, 13.8430, 37.8476)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B229A7 #29B234
analogous
#7929B2 #B229A7 #B22962
triadic
#B229A7 #A7B229 #29A7B2
tetradic
#B229A7 #B27929 #29B234 #2962B2
square
#B229A7 #B27929 #29B234 #2962B2
split-complementary
#B229A7 #62B229 #29B279
monochromatic
#4F124A #801E78 #B229A7 #D444C8 #DF76D7

Accessibility & contrast

On white

5.57
#B229A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B229A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B229A7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B229A7#FFFFFF#000000##FFFFFF
##B229A71.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#576FA4
Tritanopia (blue-blind)
#BA3A67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b229a7;
/* rgb */ color: rgb(178, 41, 167);
/* oklch */ color: oklch(54.6% 0.216 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd73c1',
    500: '#b229a7',
    950: '#000000',
  },
}
SCSS
$custom: #b229a7;
$custom-light: #cd73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b229a7",
  "rgb": {
    "r": 178,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 304.818,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54599,
    "c": 0.21614,
    "h": 331.7
  },
  "luminance": 0.13841
}

Semantic roles & 50–950 ramp

primary
#B229A7
secondary
#70C777
accent
#E64F42
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B229A7

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

Preview Lab → · Contrast checker → · Palette generator →

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