#B231AB#B231AB

#B231AB is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.211 H 330.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B231AB
RGBrgb(178, 49, 171)
HSLhsl(303, 57%, 45%)
HSVhsv(303, 72%, 70%)
CMYKcmyk(0%, 72.5%, 3.9%, 30.2%)
CIE-LABlab(45.09, 64.60, -37.83)
CIE-LCHlch(45.09, 74.86, 329.65°)
OKLaboklab(55.44% 0.1833 -0.1043)
OKLCHoklch(55.44% 0.211 330.3)
XYZxyz(26.8090, 14.6040, 39.9270)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231AB #31B238
analogous
#7931B2 #B231AB #B2316B
triadic
#B231AB #ABB231 #31ABB2
tetradic
#B231AB #B27931 #31B238 #316BB2
square
#B231AB #B27931 #31B238 #316BB2
split-complementary
#B231AB #6BB231 #31B279
monochromatic
#52174F #82247D #B231AB #CF51C8 #DC81D7

Accessibility & contrast

On white

5.36
#B231AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B231AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231AB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231AB#FFFFFF#000000##FFFFFF
##B231AB1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAE
Deuteranopia (green-blind)
#5871A8
Tritanopia (blue-blind)
#B9426B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b231ab;
/* rgb */ color: rgb(178, 49, 171);
/* oklch */ color: oklch(55.4% 0.211 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd76c4',
    500: '#b231ab',
    950: '#000000',
  },
}
SCSS
$custom: #b231ab;
$custom-light: #cd76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b231ab",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 303.256,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55442,
    "c": 0.21091,
    "h": 330.3
  },
  "luminance": 0.14602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B231AB

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

Preview Lab → · Contrast checker → · Palette generator →

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