#B040C3#B040C3

#B040C3 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.212 H 321.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B040C3
RGBrgb(176, 64, 195)
HSLhsl(291, 52%, 51%)
HSVhsv(291, 67%, 76%)
CMYKcmyk(9.7%, 67.2%, 0%, 23.5%)
CIE-LABlab(48.06, 62.76, -47.19)
CIE-LCHlch(48.06, 78.52, 323.06°)
OKLaboklab(57.94% 0.1658 -0.1317)
OKLCHoklch(57.94% 0.212 321.5)
XYZxyz(29.5871, 16.8386, 53.3109)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040C3 #53C340
analogous
#6E40C3 #B040C3 #C34094
triadic
#B040C3 #C3B040 #40C3B0
tetradic
#B040C3 #C36E40 #53C340 #4094C3
square
#B040C3 #C36E40 #53C340 #4094C3
split-complementary
#B040C3 #94C340 #40C36E
monochromatic
#5E2168 #882F97 #B040C3 #C36FD2 #D79DE0

Accessibility & contrast

On white

4.81
#B040C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#B040C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040C3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040C3#FFFFFF#000000##FFFFFF
##B040C31.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166AC7
Deuteranopia (green-blind)
#4F76C0
Tritanopia (blue-blind)
#B2577D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b040c3;
/* rgb */ color: rgb(176, 64, 195);
/* oklch */ color: oklch(57.9% 0.212 321.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ed6',
    500: '#b040c3',
    950: '#000000',
  },
}
SCSS
$custom: #b040c3;
$custom-light: #cb7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b040c3",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 291.298,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.21176,
    "h": 321.5
  },
  "luminance": 0.16837
}

Semantic roles & 50–950 ramp

primary
#B040C3
secondary
#9BCC92
accent
#DC4C61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B040C3

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

Preview Lab → · Contrast checker → · Palette generator →

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