#B231A1#B231A1

#B231A1 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.204 H 333.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B231A1
RGBrgb(178, 49, 161)
HSLhsl(308, 57%, 45%)
HSVhsv(308, 72%, 70%)
CMYKcmyk(0%, 72.5%, 9.6%, 30.2%)
CIE-LABlab(44.57, 63.04, -32.70)
CIE-LCHlch(44.57, 71.02, 332.59°)
OKLaboklab(54.9% 0.1828 -0.0895)
OKLCHoklch(54.9% 0.204 333.9)
XYZxyz(25.8916, 14.2370, 35.0957)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A1 #31B242
analogous
#8331B2 #B231A1 #B23161
triadic
#B231A1 #A1B231 #31A1B2
tetradic
#B231A1 #B28331 #31B242 #3161B2
square
#B231A1 #B28331 #31B242 #3161B2
split-complementary
#B231A1 #61B231 #31B283
monochromatic
#52174A #822476 #B231A1 #CF51BF #DC81D0

Accessibility & contrast

On white

5.46
#B231A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B231A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231A1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A1#FFFFFF#000000##FFFFFF
##B231A11.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA4
Deuteranopia (green-blind)
#5D709E
Tritanopia (blue-blind)
#BA3D66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b231a1;
/* rgb */ color: rgb(178, 49, 161);
/* oklch */ color: oklch(54.9% 0.204 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd76bd',
    500: '#b231a1',
    950: '#000000',
  },
}
SCSS
$custom: #b231a1;
$custom-light: #cd76bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a1",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 307.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54903,
    "c": 0.20352,
    "h": 333.9
  },
  "luminance": 0.14235
}

Semantic roles & 50–950 ramp

primary
#B231A1
secondary
#79C583
accent
#E05C48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A1

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

Preview Lab → · Contrast checker → · Palette generator →

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