#B031AF#B031AF

#B031AF is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.213 H 328.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B031AF
RGBrgb(176, 49, 175)
HSLhsl(300, 56%, 44%)
HSVhsv(300, 72%, 69%)
CMYKcmyk(0%, 72.2%, 0.6%, 31%)
CIE-LABlab(44.97, 64.80, -40.39)
CIE-LCHlch(44.97, 76.36, 328.06°)
OKLaboklab(55.37% 0.1812 -0.1118)
OKLCHoklch(55.37% 0.213 328.3)
XYZxyz(26.7404, 14.5238, 41.9441)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031AF #31B032
analogous
#7131B0 #B031AF #B03170
triadic
#B031AF #AFB031 #31AFB0
tetradic
#B031AF #B07131 #31B032 #3170B0
square
#B031AF #B07131 #31B032 #3170B0
split-complementary
#B031AF #70B031 #31B071
monochromatic
#501650 #80247F #B031AF #CE50CD #DC80DB

Accessibility & contrast

On white

5.38
#B031AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B031AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031AF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031AF#FFFFFF#000000##FFFFFF
##B031AF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B2
Deuteranopia (green-blind)
#5470AC
Tritanopia (blue-blind)
#B6446D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b031af;
/* rgb */ color: rgb(176, 49, 175);
/* oklch */ color: oklch(55.4% 0.213 328.3);
Tailwind
colors: {
  custom: {
    50: '#cb76c7',
    500: '#b031af',
    950: '#000000',
  },
}
SCSS
$custom: #b031af;
$custom-light: #cb76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b031af",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 300.472,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.21296,
    "h": 328.3
  },
  "luminance": 0.14522
}

Semantic roles & 50–950 ramp

primary
#B031AF
secondary
#78C579
accent
#E04948
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #B031AF

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

Preview Lab → · Contrast checker → · Palette generator →

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