#B040BF#B040BF

#B040BF is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.208 H 322.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B040BF
RGBrgb(176, 64, 191)
HSLhsl(293, 50%, 50%)
HSVhsv(293, 66%, 75%)
CMYKcmyk(7.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(47.83, 62.03, -45.23)
CIE-LCHlch(47.83, 76.77, 323.90°)
OKLaboklab(57.71% 0.1658 -0.126)
OKLCHoklch(57.71% 0.208 322.8)
XYZxyz(29.1409, 16.6601, 50.9609)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BF #4FBF40
analogous
#7040BF #B040BF #BF408F
triadic
#B040BF #BFB040 #40BFB0
tetradic
#B040BF #BF7040 #4FBF40 #408FBF
square
#B040BF #BF7040 #4FBF40 #408FBF
split-complementary
#B040BF #8FBF40 #40BF70
monochromatic
#5C2163 #863191 #B040BF #C36ECE #D69CDE

Accessibility & contrast

On white

4.85
#B040BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B040BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040BF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040BF#FFFFFF#000000##FFFFFF
##B040BF1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F69C3
Deuteranopia (green-blind)
#5276BC
Tritanopia (blue-blind)
#B3557A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040bf;
/* rgb */ color: rgb(176, 64, 191);
/* oklch */ color: oklch(57.7% 0.208 322.8);
Tailwind
colors: {
  custom: {
    50: '#cb7dd3',
    500: '#b040bf',
    950: '#000000',
  },
}
SCSS
$custom: #b040bf;
$custom-light: #cb7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b040bf",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 292.913,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.57705,
    "c": 0.20828,
    "h": 322.8
  },
  "luminance": 0.16658
}

Semantic roles & 50–950 ramp

primary
#B040BF
secondary
#98CA91
accent
#D94E5F
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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