#B31CA4#B31CA4

#B31CA4 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.225 H 333.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B31CA4
RGBrgb(179, 28, 164)
HSLhsl(306, 73%, 41%)
HSVhsv(306, 84%, 70%)
CMYKcmyk(0%, 84.4%, 8.4%, 29.8%)
CIE-LABlab(42.91, 69.43, -37.10)
CIE-LCHlch(42.91, 78.72, 331.88°)
OKLaboklab(53.8% 0.2007 -0.1021)
OKLCHoklch(53.8% 0.225 333)
XYZxyz(25.7067, 13.0969, 36.2888)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA4 #1CB32B
analogous
#761CB3 #B31CA4 #B31C59
triadic
#B31CA4 #A4B31C #1CA4B3
tetradic
#B31CA4 #B3761C #1CB32B #1C59B3
square
#B31CA4 #B3761C #1CB32B #1C59B3
split-complementary
#B31CA4 #59B31C #1CB376
monochromatic
#490B43 #7E1474 #B31CA4 #DE2ECD #E763D9

Accessibility & contrast

On white

5.80
#B31CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B31CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA4
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA4#FFFFFF#000000##FFFFFF
##B31CA41.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F58A7
Deuteranopia (green-blind)
#556DA1
Tritanopia (blue-blind)
#BB3162
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca4;
/* rgb */ color: rgb(179, 28, 164);
/* oklch */ color: oklch(53.8% 0.225 333.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ebf',
    500: '#b31ca4',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca4;
$custom-light: #ce6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca4",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 164
  },
  "hsl": {
    "h": 305.96,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53796,
    "c": 0.22515,
    "h": 333
  },
  "luminance": 0.13095
}

Semantic roles & 50–950 ramp

primary
#B31CA4
secondary
#5FCB6A
accent
#F04A38
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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