#B040B8#B040B8

#B040B8 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.3% C 0.202 H 325.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B040B8
RGBrgb(176, 64, 184)
HSLhsl(296, 48%, 49%)
HSVhsv(296, 65%, 72%)
CMYKcmyk(4.3%, 65.2%, 0%, 27.8%)
CIE-LABlab(47.44, 60.77, -41.77)
CIE-LCHlch(47.44, 73.74, 325.50°)
OKLaboklab(57.3% 0.1658 -0.1159)
OKLCHoklch(57.3% 0.202 325)
XYZxyz(28.3890, 16.3593, 47.0005)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040B8 #48B840
analogous
#7440B8 #B040B8 #B84084
triadic
#B040B8 #B8B040 #40B8B0
tetradic
#B040B8 #B87440 #48B840 #4084B8
square
#B040B8 #B87440 #48B840 #4084B8
split-complementary
#B040B8 #84B840 #40B874
monochromatic
#59205D #85308B #B040B8 #C56ACB #D697DB

Accessibility & contrast

On white

4.92
#B040B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B040B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040B8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040B8#FFFFFF#000000##FFFFFF
##B040B81.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BC
Deuteranopia (green-blind)
#5775B5
Tritanopia (blue-blind)
#B45277
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b040b8;
/* rgb */ color: rgb(176, 64, 184);
/* oklch */ color: oklch(57.3% 0.202 325.0);
Tailwind
colors: {
  custom: {
    50: '#cb7dce',
    500: '#b040b8',
    950: '#000000',
  },
}
SCSS
$custom: #b040b8;
$custom-light: #cb7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#b040b8",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 296,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.20227,
    "h": 325
  },
  "luminance": 0.16358
}

Semantic roles & 50–950 ramp

primary
#B040B8
secondary
#91C78D
accent
#D85059
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040B8

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

Preview Lab → · Contrast checker → · Palette generator →

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