#B040B7#B040B7

#B040B7 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.2% C 0.201 H 325.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B040B7
RGBrgb(176, 64, 183)
HSLhsl(296, 48%, 48%)
HSVhsv(296, 65%, 72%)
CMYKcmyk(3.8%, 65%, 0%, 28.2%)
CIE-LABlab(47.39, 60.59, -41.27)
CIE-LCHlch(47.39, 73.31, 325.74°)
OKLaboklab(57.25% 0.1657 -0.1145)
OKLCHoklch(57.25% 0.201 325.4)
XYZxyz(28.2845, 16.3175, 46.4504)
Luminance0.1632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040B7 #47B740
analogous
#7440B7 #B040B7 #B74082
triadic
#B040B7 #B7B040 #40B7B0
tetradic
#B040B7 #B77440 #47B740 #4082B7
square
#B040B7 #B77440 #47B740 #4082B7
split-complementary
#B040B7 #82B740 #40B774
monochromatic
#59205C #84308A #B040B7 #C569CB #D797DB

Accessibility & contrast

On white

4.93
#B040B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B040B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040B7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040B7#FFFFFF#000000##FFFFFF
##B040B71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BB
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#B45276
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b040b7;
/* rgb */ color: rgb(176, 64, 183);
/* oklch */ color: oklch(57.2% 0.201 325.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dcd',
    500: '#b040b7',
    950: '#000000',
  },
}
SCSS
$custom: #b040b7;
$custom-light: #cb7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#b040b7",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 296.471,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.20142,
    "h": 325.4
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#B040B7
secondary
#90C68D
accent
#D85058
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040B7

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

Preview Lab → · Contrast checker → · Palette generator →

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