#B040B3#B040B3

#B040B3 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.0% C 0.198 H 326.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B040B3
RGBrgb(176, 64, 179)
HSLhsl(298, 47%, 48%)
HSVhsv(298, 64%, 70%)
CMYKcmyk(1.7%, 64.2%, 0%, 29.8%)
CIE-LABlab(47.18, 59.89, -39.26)
CIE-LCHlch(47.18, 71.61, 326.75°)
OKLaboklab(57.02% 0.1656 -0.1087)
OKLCHoklch(57.02% 0.198 326.7)
XYZxyz(27.8741, 16.1534, 44.2888)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040B3 #43B340
analogous
#7740B3 #B040B3 #B3407C
triadic
#B040B3 #B3B040 #40B3B0
tetradic
#B040B3 #B37740 #43B340 #407CB3
square
#B040B3 #B37740 #43B340 #407CB3
split-complementary
#B040B3 #7CB340 #40B377
monochromatic
#572059 #843086 #B040B3 #C667C9 #D794D9

Accessibility & contrast

On white

4.96
#B040B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B040B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040B3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040B3#FFFFFF#000000##FFFFFF
##B040B31.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B6
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#B55074
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b040b3;
/* rgb */ color: rgb(176, 64, 179);
/* oklch */ color: oklch(57.0% 0.198 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb7dca',
    500: '#b040b3',
    950: '#000000',
  },
}
SCSS
$custom: #b040b3;
$custom-light: #cb7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#b040b3",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 298.435,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57021,
    "c": 0.19804,
    "h": 326.7
  },
  "luminance": 0.16152
}

Semantic roles & 50–950 ramp

primary
#B040B3
secondary
#8CC48A
accent
#D75154
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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