#B231A4#B231A4

#B231A4 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.206 H 332.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B231A4
RGBrgb(178, 49, 164)
HSLhsl(307, 57%, 45%)
HSVhsv(307, 72%, 70%)
CMYKcmyk(0%, 72.5%, 7.9%, 30.2%)
CIE-LABlab(44.72, 63.50, -34.25)
CIE-LCHlch(44.72, 72.15, 331.66°)
OKLaboklab(55.06% 0.183 -0.094)
OKLCHoklch(55.06% 0.206 332.8)
XYZxyz(26.1594, 14.3441, 36.5057)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A4 #31B23F
analogous
#8031B2 #B231A4 #B23163
triadic
#B231A4 #A4B231 #31A4B2
tetradic
#B231A4 #B28031 #31B23F #3163B2
square
#B231A4 #B28031 #31B23F #3163B2
split-complementary
#B231A4 #63B231 #31B280
monochromatic
#52174C #822478 #B231A4 #CF51C1 #DC81D2

Accessibility & contrast

On white

5.43
#B231A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B231A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231A4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A4#FFFFFF#000000##FFFFFF
##B231A41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#5B70A1
Tritanopia (blue-blind)
#BA3E67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b231a4;
/* rgb */ color: rgb(178, 49, 164);
/* oklch */ color: oklch(55.1% 0.206 332.8);
Tailwind
colors: {
  custom: {
    50: '#cd76bf',
    500: '#b231a4',
    950: '#000000',
  },
}
SCSS
$custom: #b231a4;
$custom-light: #cd76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a4",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 306.512,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55062,
    "c": 0.20571,
    "h": 332.8
  },
  "luminance": 0.14342
}

Semantic roles & 50–950 ramp

primary
#B231A4
secondary
#79C582
accent
#E05848
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A4

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

Preview Lab → · Contrast checker → · Palette generator →

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