#B731AF#B731AF

#B731AF is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.216 H 330.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B731AF
RGBrgb(183, 49, 175)
HSLhsl(304, 58%, 45%)
HSVhsv(304, 73%, 72%)
CMYKcmyk(0%, 73.2%, 4.4%, 28.2%)
CIE-LABlab(46.13, 66.35, -38.50)
CIE-LCHlch(46.13, 76.71, 329.88°)
OKLaboklab(56.41% 0.1886 -0.1062)
OKLCHoklch(56.41% 0.216 330.6)
XYZxyz(28.3645, 15.3613, 42.0202)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731AF #31B739
analogous
#7C31B7 #B731AF #B7316C
triadic
#B731AF #AFB731 #31AFB7
tetradic
#B731AF #B77C31 #31B739 #316CB7
square
#B731AF #B77C31 #31B739 #316CB7
split-complementary
#B731AF #6CB731 #31B77C
monochromatic
#561753 #872481 #B731AF #D154CA #DE84D9

Accessibility & contrast

On white

5.16
#B731AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B731AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731AF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731AF#FFFFFF#000000##FFFFFF
##B731AF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#BE426D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b731af;
/* rgb */ color: rgb(183, 49, 175);
/* oklch */ color: oklch(56.4% 0.216 330.6);
Tailwind
colors: {
  custom: {
    50: '#d077c7',
    500: '#b731af',
    950: '#000000',
  },
}
SCSS
$custom: #b731af;
$custom-light: #d077c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b731af",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 303.582,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56414,
    "c": 0.21644,
    "h": 330.6
  },
  "luminance": 0.15359
}

Semantic roles & 50–950 ramp

primary
#B731AF
secondary
#7CC881
accent
#E15047
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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