#B040C7#B040C7

#B040C7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.215 H 320.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B040C7
RGBrgb(176, 64, 199)
HSLhsl(290, 55%, 52%)
HSVhsv(290, 68%, 78%)
CMYKcmyk(11.6%, 67.8%, 0%, 22%)
CIE-LABlab(48.29, 63.50, -49.14)
CIE-LCHlch(48.29, 80.29, 322.27°)
OKLaboklab(58.18% 0.1657 -0.1374)
OKLCHoklch(58.18% 0.215 320.3)
XYZxyz(30.0455, 17.0219, 55.7247)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040C7 #57C740
analogous
#6D40C7 #B040C7 #C7409B
triadic
#B040C7 #C7B040 #40C7B0
tetradic
#B040C7 #C76D40 #57C740 #409BC7
square
#B040C7 #C76D40 #57C740 #409BC7
split-complementary
#B040C7 #9BC740 #40C76D
monochromatic
#60206D #892E9C #B040C7 #C46FD5 #D79FE3

Accessibility & contrast

On white

4.77
#B040C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B040C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040C7#FFFFFF#000000##FFFFFF
##B040C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6BCB
Deuteranopia (green-blind)
#4D77C4
Tritanopia (blue-blind)
#B1587F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b040c7;
/* rgb */ color: rgb(176, 64, 199);
/* oklch */ color: oklch(58.2% 0.215 320.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ed9',
    500: '#b040c7',
    950: '#000000',
  },
}
SCSS
$custom: #b040c7;
$custom-light: #cb7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#b040c7",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 289.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58182,
    "c": 0.21526,
    "h": 320.3
  },
  "luminance": 0.1702
}

Semantic roles & 50–950 ramp

primary
#B040C7
secondary
#9ECF94
accent
#DE4A63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #B040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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