#B231A6#B231A6

#B231A6 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.207 H 332.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B231A6
RGBrgb(178, 49, 166)
HSLhsl(306, 57%, 45%)
HSVhsv(306, 72%, 70%)
CMYKcmyk(0%, 72.5%, 6.7%, 30.2%)
CIE-LABlab(44.83, 63.81, -35.28)
CIE-LCHlch(44.83, 72.91, 331.07°)
OKLaboklab(55.17% 0.1831 -0.097)
OKLCHoklch(55.17% 0.207 332.1)
XYZxyz(26.3414, 14.4169, 37.4644)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A6 #31B23D
analogous
#7D31B2 #B231A6 #B23166
triadic
#B231A6 #A6B231 #31A6B2
tetradic
#B231A6 #B27D31 #31B23D #3166B2
square
#B231A6 #B27D31 #31B23D #3166B2
split-complementary
#B231A6 #66B231 #31B27D
monochromatic
#52174C #822479 #B231A6 #CF51C3 #DC81D4

Accessibility & contrast

On white

5.41
#B231A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B231A6
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A6#FFFFFF#000000##FFFFFF
##B231A61.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA9
Deuteranopia (green-blind)
#5A70A3
Tritanopia (blue-blind)
#BA3F68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b231a6;
/* rgb */ color: rgb(178, 49, 166);
/* oklch */ color: oklch(55.2% 0.207 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd76c1',
    500: '#b231a6',
    950: '#000000',
  },
}
SCSS
$custom: #b231a6;
$custom-light: #cd76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a6",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 305.581,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55169,
    "c": 0.20718,
    "h": 332.1
  },
  "luminance": 0.14415
}

Semantic roles & 50–950 ramp

primary
#B231A6
secondary
#79C580
accent
#E05648
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A6

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

Preview Lab → · Contrast checker → · Palette generator →

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