#B31BB3#B31BB3

#B31BB3 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.6% C 0.236 H 328.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B31BB3
RGBrgb(179, 27, 179)
HSLhsl(300, 74%, 40%)
HSVhsv(300, 85%, 70%)
CMYKcmyk(0%, 84.9%, 0%, 29.8%)
CIE-LABlab(43.69, 71.88, -44.77)
CIE-LCHlch(43.69, 84.69, 328.08°)
OKLaboklab(54.62% 0.2008 -0.1243)
OKLCHoklch(54.62% 0.236 328.2)
XYZxyz(27.1187, 13.6244, 43.8405)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BB3 #1BB31B
analogous
#671BB3 #B31BB3 #B31B67
triadic
#B31BB3 #B3B31B #1BB3B3
tetradic
#B31BB3 #B3671B #1BB31B #1B67B3
square
#B31BB3 #B3671B #1BB31B #1B67B3
split-complementary
#B31BB3 #67B31B #1BB367
monochromatic
#490B49 #7E137E #B31BB3 #DF2CDF #E761E7

Accessibility & contrast

On white

5.64
#B31BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BB3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BB3#FFFFFF#000000##FFFFFF
##B31BB31.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#B9396B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31bb3;
/* rgb */ color: rgb(179, 27, 179);
/* oklch */ color: oklch(54.6% 0.236 328.2);
Tailwind
colors: {
  custom: {
    50: '#ce6fca',
    500: '#b31bb3',
    950: '#000000',
  },
}
SCSS
$custom: #b31bb3;
$custom-light: #ce6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31bb3",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54623,
    "c": 0.23618,
    "h": 328.2
  },
  "luminance": 0.13622
}

Semantic roles & 50–950 ramp

primary
#B31BB3
secondary
#5ECC5E
accent
#F03737
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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