#B321A7#B321A7

#B321A7 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.224 H 332.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B321A7
RGBrgb(179, 33, 167)
HSLhsl(305, 69%, 42%)
HSVhsv(305, 82%, 70%)
CMYKcmyk(0%, 81.6%, 6.7%, 29.8%)
CIE-LABlab(43.45, 68.76, -38.03)
CIE-LCHlch(43.45, 78.58, 331.06°)
OKLaboklab(54.24% 0.1975 -0.1048)
OKLCHoklch(54.24% 0.224 332)
XYZxyz(26.1094, 13.4637, 37.7754)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B321A7 #21B32D
analogous
#7621B3 #B321A7 #B3215E
triadic
#B321A7 #A7B321 #21A7B3
tetradic
#B321A7 #B37621 #21B32D #215EB3
square
#B321A7 #B37621 #21B32D #215EB3
split-complementary
#B321A7 #5EB321 #21B376
monochromatic
#4C0E47 #7F1777 #B321A7 #DA37CD #E46BDA

Accessibility & contrast

On white

5.69
#B321A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B321A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B321A7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B321A7#FFFFFF#000000##FFFFFF
##B321A71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#BB3565
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b321a7;
/* rgb */ color: rgb(179, 33, 167);
/* oklch */ color: oklch(54.2% 0.224 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce70c1',
    500: '#b321a7',
    950: '#000000',
  },
}
SCSS
$custom: #b321a7;
$custom-light: #ce70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b321a7",
  "rgb": {
    "r": 179,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 304.932,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.54237,
    "c": 0.22354,
    "h": 332
  },
  "luminance": 0.13461
}

Semantic roles & 50–950 ramp

primary
#B321A7
secondary
#66CA6E
accent
#EC4B3C
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B321A7

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

Preview Lab → · Contrast checker → · Palette generator →

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