#B231A5#B231A5

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

Color values

HEX#B231A5
RGBrgb(178, 49, 165)
HSLhsl(306, 57%, 45%)
HSVhsv(306, 72%, 70%)
CMYKcmyk(0%, 72.5%, 7.3%, 30.2%)
CIE-LABlab(44.77, 63.66, -34.76)
CIE-LCHlch(44.77, 72.53, 331.36°)
OKLaboklab(55.12% 0.183 -0.0955)
OKLCHoklch(55.12% 0.206 332.5)
XYZxyz(26.2500, 14.3804, 36.9832)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A5 #31B23E
analogous
#7F31B2 #B231A5 #B23164
triadic
#B231A5 #A5B231 #31A5B2
tetradic
#B231A5 #B27F31 #31B23E #3164B2
square
#B231A5 #B27F31 #31B23E #3164B2
split-complementary
#B231A5 #64B231 #31B27F
monochromatic
#52174C #822479 #B231A5 #CF51C2 #DC81D3

Accessibility & contrast

On white

5.42
#B231A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#B231A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231A5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A5#FFFFFF#000000##FFFFFF
##B231A51.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#5B70A2
Tritanopia (blue-blind)
#BA3F68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b231a5;
/* rgb */ color: rgb(178, 49, 165);
/* oklch */ color: oklch(55.1% 0.206 332.5);
Tailwind
colors: {
  custom: {
    50: '#cd76c0',
    500: '#b231a5',
    950: '#000000',
  },
}
SCSS
$custom: #b231a5;
$custom-light: #cd76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a5",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 306.047,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55115,
    "c": 0.20644,
    "h": 332.5
  },
  "luminance": 0.14378
}

Semantic roles & 50–950 ramp

primary
#B231A5
secondary
#79C581
accent
#E05748
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A5

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

Preview Lab → · Contrast checker → · Palette generator →

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