#B31BAF#B31BAF

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

Color values

HEX#B31BAF
RGBrgb(179, 27, 175)
HSLhsl(302, 74%, 40%)
HSVhsv(302, 85%, 70%)
CMYKcmyk(0%, 84.9%, 2.2%, 29.8%)
CIE-LABlab(43.46, 71.27, -42.78)
CIE-LCHlch(43.46, 83.12, 329.03°)
OKLaboklab(54.38% 0.201 -0.1185)
OKLCHoklch(54.38% 0.233 329.5)
XYZxyz(26.7200, 13.4649, 41.7408)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BAF #1BB31F
analogous
#6B1BB3 #B31BAF #B31B63
triadic
#B31BAF #AFB31B #1BAFB3
tetradic
#B31BAF #B36B1B #1BB31F #1B63B3
square
#B31BAF #B36B1B #1BB31F #1B63B3
split-complementary
#B31BAF #63B31B #1BB36B
monochromatic
#490B47 #7E137B #B31BAF #DF2CDA #E761E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31BAF#FFFFFF#000000##FFFFFF
##B31BAF1.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)
#005AB3
Deuteranopia (green-blind)
#4F6DAC
Tritanopia (blue-blind)
#BA3769
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31baf;
/* rgb */ color: rgb(179, 27, 175);
/* oklch */ color: oklch(54.4% 0.233 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce6fc7',
    500: '#b31baf',
    950: '#000000',
  },
}
SCSS
$custom: #b31baf;
$custom-light: #ce6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31baf",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 175
  },
  "hsl": {
    "h": 301.579,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54382,
    "c": 0.23337,
    "h": 329.5
  },
  "luminance": 0.13463
}

Semantic roles & 50–950 ramp

primary
#B31BAF
secondary
#5ECC61
accent
#F03C37
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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