#B040B0#B040B0

#B040B0 is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.9% C 0.196 H 327.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B040B0
RGBrgb(176, 64, 176)
HSLhsl(300, 47%, 47%)
HSVhsv(300, 64%, 69%)
CMYKcmyk(0%, 63.6%, 0%, 31%)
CIE-LABlab(47.02, 59.37, -37.75)
CIE-LCHlch(47.02, 70.35, 327.55°)
OKLaboklab(56.86% 0.1654 -0.1043)
OKLCHoklch(56.86% 0.196 327.8)
XYZxyz(27.5740, 16.0333, 42.7083)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040B0 #40B040
analogous
#7840B0 #B040B0 #B04078
triadic
#B040B0 #B0B040 #40B0B0
tetradic
#B040B0 #B07840 #40B040 #4078B0
square
#B040B0 #B07840 #40B040 #4078B0
split-complementary
#B040B0 #78B040 #40B078
monochromatic
#561F56 #833083 #B040B0 #C766C7 #D893D8

Accessibility & contrast

On white

4.99
#B040B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B040B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040B0
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040B0#FFFFFF#000000##FFFFFF
##B040B01.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B3
Deuteranopia (green-blind)
#5B75AD
Tritanopia (blue-blind)
#B54F72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040b0;
/* rgb */ color: rgb(176, 64, 176);
/* oklch */ color: oklch(56.9% 0.196 327.8);
Tailwind
colors: {
  custom: {
    50: '#cb7dc8',
    500: '#b040b0',
    950: '#000000',
  },
}
SCSS
$custom: #b040b0;
$custom-light: #cb7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#b040b0",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 300,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56857,
    "c": 0.19554,
    "h": 327.8
  },
  "luminance": 0.16031
}

Semantic roles & 50–950 ramp

primary
#B040B0
secondary
#89C389
accent
#D65151
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040B0

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

Preview Lab → · Contrast checker → · Palette generator →

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