#B331AF#B331AF

#B331AF is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.214 H 329.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B331AF
RGBrgb(179, 49, 175)
HSLhsl(302, 57%, 45%)
HSVhsv(302, 73%, 70%)
CMYKcmyk(0%, 72.6%, 2.2%, 29.8%)
CIE-LABlab(45.47, 65.47, -39.59)
CIE-LCHlch(45.47, 76.50, 328.84°)
OKLaboklab(55.82% 0.1844 -0.1094)
OKLCHoklch(55.82% 0.214 329.3)
XYZxyz(27.4264, 14.8775, 41.9763)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331AF #31B335
analogous
#7631B3 #B331AF #B3316E
triadic
#B331AF #AFB331 #31AFB3
tetradic
#B331AF #B37631 #31B335 #316EB3
square
#B331AF #B37631 #31B335 #316EB3
split-complementary
#B331AF #6EB331 #31B376
monochromatic
#531751 #832480 #B331AF #D052CC #DD82DA

Accessibility & contrast

On white

5.28
#B331AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B331AF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331AF#FFFFFF#000000##FFFFFF
##B331AF1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E61B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#B9436D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331af;
/* rgb */ color: rgb(179, 49, 175);
/* oklch */ color: oklch(55.8% 0.214 329.3);
Tailwind
colors: {
  custom: {
    50: '#cd76c7',
    500: '#b331af',
    950: '#000000',
  },
}
SCSS
$custom: #b331af;
$custom-light: #cd76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b331af",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 301.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55815,
    "c": 0.21445,
    "h": 329.3
  },
  "luminance": 0.14875
}

Semantic roles & 50–950 ramp

primary
#B331AF
secondary
#7AC67C
accent
#E04C48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B331AF

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

Preview Lab → · Contrast checker → · Palette generator →

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