#B831C5#B831C5

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

Color values

HEX#B831C5
RGBrgb(184, 49, 197)
HSLhsl(295, 60%, 48%)
HSVhsv(295, 75%, 77%)
CMYKcmyk(6.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(47.52, 70.16, -49.13)
CIE-LCHlch(47.52, 85.66, 325.00°)
OKLaboklab(57.84% 0.1893 -0.1371)
OKLCHoklch(57.84% 0.234 324.1)
XYZxyz(30.9427, 16.4201, 54.3521)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831C5 #3EC531
analogous
#6E31C5 #B831C5 #C53188
triadic
#B831C5 #C5B831 #31C5B8
tetradic
#B831C5 #C56E31 #3EC531 #3188C5
square
#B831C5 #C56E31 #3EC531 #3188C5
split-complementary
#B831C5 #88C531 #31C56E
monochromatic
#5C1963 #8A2594 #B831C5 #CC5DD7 #DB8EE3

Accessibility & contrast

On white

4.90
#B831C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B831C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831C5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831C5#FFFFFF#000000##FFFFFF
##B831C51.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#4E76C2
Tritanopia (blue-blind)
#BB4D7A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b831c5;
/* rgb */ color: rgb(184, 49, 197);
/* oklch */ color: oklch(57.8% 0.234 324.1);
Tailwind
colors: {
  custom: {
    50: '#d178d7',
    500: '#b831c5',
    950: '#000000',
  },
}
SCSS
$custom: #b831c5;
$custom-light: #d178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#b831c5",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 294.73,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57839,
    "c": 0.23371,
    "h": 324.1
  },
  "luminance": 0.16418
}

Semantic roles & 50–950 ramp

primary
#B831C5
secondary
#8BCD85
accent
#E34452
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #B831C5

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

Preview Lab → · Contrast checker → · Palette generator →

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