#B231AC#B231AC

#B231AC is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.212 H 330.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B231AC
RGBrgb(178, 49, 172)
HSLhsl(303, 57%, 45%)
HSVhsv(303, 72%, 70%)
CMYKcmyk(0%, 72.5%, 3.4%, 30.2%)
CIE-LABlab(45.14, 64.76, -38.34)
CIE-LCHlch(45.14, 75.26, 329.37°)
OKLaboklab(55.5% 0.1833 -0.1058)
OKLCHoklch(55.5% 0.212 330)
XYZxyz(26.9047, 14.6422, 40.4309)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231AC #31B237
analogous
#7831B2 #B231AC #B2316B
triadic
#B231AC #ACB231 #31ACB2
tetradic
#B231AC #B27831 #31B237 #316BB2
square
#B231AC #B27831 #31B237 #316BB2
split-complementary
#B231AC #6BB231 #31B278
monochromatic
#52174F #82247E #B231AC #CF51C9 #DC81D8

Accessibility & contrast

On white

5.35
#B231AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B231AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231AC
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231AC#FFFFFF#000000##FFFFFF
##B231AC1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2260AF
Deuteranopia (green-blind)
#5771A9
Tritanopia (blue-blind)
#B9426C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b231ac;
/* rgb */ color: rgb(178, 49, 172);
/* oklch */ color: oklch(55.5% 0.212 330.0);
Tailwind
colors: {
  custom: {
    50: '#cd76c5',
    500: '#b231ac',
    950: '#000000',
  },
}
SCSS
$custom: #b231ac;
$custom-light: #cd76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b231ac",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 302.791,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55497,
    "c": 0.21167,
    "h": 330
  },
  "luminance": 0.1464
}

Semantic roles & 50–950 ramp

primary
#B231AC
secondary
#79C57D
accent
#E04F48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B231AC

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

Preview Lab → · Contrast checker → · Palette generator →

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