#B831C4#B831C4

#B831C4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.233 H 324.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B831C4
RGBrgb(184, 49, 196)
HSLhsl(295, 60%, 48%)
HSVhsv(295, 75%, 77%)
CMYKcmyk(6.1%, 75%, 0%, 23.1%)
CIE-LABlab(47.46, 69.99, -48.65)
CIE-LCHlch(47.46, 85.24, 325.20°)
OKLaboklab(57.78% 0.1894 -0.1356)
OKLCHoklch(57.78% 0.233 324.4)
XYZxyz(30.8285, 16.3745, 53.7507)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831C4 #3DC431
analogous
#6E31C4 #B831C4 #C43186
triadic
#B831C4 #C4B831 #31C4B8
tetradic
#B831C4 #C46E31 #3DC431 #3186C4
square
#B831C4 #C46E31 #3DC431 #3186C4
split-complementary
#B831C4 #86C431 #31C46E
monochromatic
#5C1962 #8A2593 #B831C4 #CC5CD6 #DB8DE2

Accessibility & contrast

On white

4.91
#B831C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B831C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831C4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831C4#FFFFFF#000000##FFFFFF
##B831C41.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#4E76C1
Tritanopia (blue-blind)
#BC4C79
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b831c4;
/* rgb */ color: rgb(184, 49, 196);
/* oklch */ color: oklch(57.8% 0.233 324.4);
Tailwind
colors: {
  custom: {
    50: '#d178d6',
    500: '#b831c4',
    950: '#000000',
  },
}
SCSS
$custom: #b831c4;
$custom-light: #d178d6;
$custom-dark: #000000;
JSON
{
  "hex": "#b831c4",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 295.102,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57778,
    "c": 0.23293,
    "h": 324.4
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#B831C4
secondary
#8ACD84
accent
#E34552
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #B831C4

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

Preview Lab → · Contrast checker → · Palette generator →

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