#B040BE#B040BE

#B040BE is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.207 H 323.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B040BE
RGBrgb(176, 64, 190)
HSLhsl(293, 50%, 50%)
HSVhsv(293, 66%, 75%)
CMYKcmyk(7.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(47.77, 61.85, -44.74)
CIE-LCHlch(47.77, 76.33, 324.12°)
OKLaboklab(57.65% 0.1658 -0.1246)
OKLCHoklch(57.65% 0.207 323.1)
XYZxyz(29.0313, 16.6162, 50.3833)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BE #4EBE40
analogous
#7140BE #B040BE #BE408D
triadic
#B040BE #BEB040 #40BEB0
tetradic
#B040BE #BE7140 #4EBE40 #408DBE
square
#B040BE #BE7140 #4EBE40 #408DBE
split-complementary
#B040BE #8DBE40 #40BE71
monochromatic
#5B2162 #863190 #B040BE #C36DCE #D69BDD

Accessibility & contrast

On white

4.86
#B040BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B040BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040BE
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040BE#FFFFFF#000000##FFFFFF
##B040BE1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C2
Deuteranopia (green-blind)
#5376BB
Tritanopia (blue-blind)
#B3547A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040be;
/* rgb */ color: rgb(176, 64, 190);
/* oklch */ color: oklch(57.6% 0.207 323.1);
Tailwind
colors: {
  custom: {
    50: '#cb7dd2',
    500: '#b040be',
    950: '#000000',
  },
}
SCSS
$custom: #b040be;
$custom-light: #cb7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#b040be",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 293.333,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57646,
    "c": 0.20742,
    "h": 323.1
  },
  "luminance": 0.16615
}

Semantic roles & 50–950 ramp

primary
#B040BE
secondary
#97C990
accent
#D94F5E
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B040BE

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

Preview Lab → · Contrast checker → · Palette generator →

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