#B231B1#B231B1

#B231B1 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.215 H 328.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B231B1
RGBrgb(178, 49, 177)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 72%, 70%)
CMYKcmyk(0%, 72.5%, 0.6%, 30.2%)
CIE-LABlab(45.41, 65.57, -40.86)
CIE-LCHlch(45.41, 77.26, 328.07°)
OKLaboklab(55.78% 0.1834 -0.1131)
OKLCHoklch(55.78% 0.215 328.3)
XYZxyz(27.3939, 14.8379, 43.0076)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231B1 #31B232
analogous
#7331B2 #B231B1 #B23171
triadic
#B231B1 #B1B231 #31B1B2
tetradic
#B231B1 #B27331 #31B232 #3171B2
square
#B231B1 #B27331 #31B232 #3171B2
split-complementary
#B231B1 #71B231 #31B273
monochromatic
#521752 #822481 #B231B1 #CF51CE #DC81DC

Accessibility & contrast

On white

5.29
#B231B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B231B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231B1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231B1#FFFFFF#000000##FFFFFF
##B231B11.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#5471AE
Tritanopia (blue-blind)
#B8446E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b231b1;
/* rgb */ color: rgb(178, 49, 177);
/* oklch */ color: oklch(55.8% 0.215 328.3);
Tailwind
colors: {
  custom: {
    50: '#cd76c9',
    500: '#b231b1',
    950: '#000000',
  },
}
SCSS
$custom: #b231b1;
$custom-light: #cd76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b231b1",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 300.465,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55779,
    "c": 0.21548,
    "h": 328.3
  },
  "luminance": 0.14836
}

Semantic roles & 50–950 ramp

primary
#B231B1
secondary
#79C57A
accent
#E04948
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B231B1

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

Preview Lab → · Contrast checker → · Palette generator →

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