#B331A9#B331A9

#B331A9 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.210 H 331.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B331A9
RGBrgb(179, 49, 169)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 73%, 70%)
CMYKcmyk(0%, 72.6%, 5.6%, 29.8%)
CIE-LABlab(45.15, 64.51, -36.54)
CIE-LCHlch(45.15, 74.14, 330.47°)
OKLaboklab(55.48% 0.1843 -0.1006)
OKLCHoklch(55.48% 0.21 331.4)
XYZxyz(26.8501, 14.6471, 38.9414)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331A9 #31B33B
analogous
#7C31B3 #B331A9 #B33168
triadic
#B331A9 #A9B331 #31A9B3
tetradic
#B331A9 #B37C31 #31B33B #3168B3
square
#B331A9 #B37C31 #31B33B #3168B3
split-complementary
#B331A9 #68B331 #31B37C
monochromatic
#53174E #83247C #B331A9 #D052C6 #DD82D6

Accessibility & contrast

On white

5.34
#B331A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B331A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331A9
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331A9#FFFFFF#000000##FFFFFF
##B331A91.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265FAC
Deuteranopia (green-blind)
#5A71A6
Tritanopia (blue-blind)
#BA406A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b331a9;
/* rgb */ color: rgb(179, 49, 169);
/* oklch */ color: oklch(55.5% 0.210 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd76c3',
    500: '#b331a9',
    950: '#000000',
  },
}
SCSS
$custom: #b331a9;
$custom-light: #cd76c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b331a9",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 304.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55482,
    "c": 0.20994,
    "h": 331.4
  },
  "luminance": 0.14645
}

Semantic roles & 50–950 ramp

primary
#B331A9
secondary
#7AC680
accent
#E05348
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B331A9

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

Preview Lab → · Contrast checker → · Palette generator →

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