#B040C5#B040C5

#B040C5 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.214 H 320.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B040C5
RGBrgb(176, 64, 197)
HSLhsl(291, 53%, 51%)
HSVhsv(291, 68%, 77%)
CMYKcmyk(10.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(48.17, 63.13, -48.17)
CIE-LCHlch(48.17, 79.41, 322.66°)
OKLaboklab(58.06% 0.1658 -0.1346)
OKLCHoklch(58.06% 0.214 320.9)
XYZxyz(29.8148, 16.9296, 54.5098)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040C5 #55C540
analogous
#6D40C5 #B040C5 #C54097
triadic
#B040C5 #C5B040 #40C5B0
tetradic
#B040C5 #C56D40 #55C540 #4097C5
square
#B040C5 #C56D40 #55C540 #4097C5
split-complementary
#B040C5 #97C540 #40C56D
monochromatic
#5F206A #882F99 #B040C5 #C36FD3 #D79EE2

Accessibility & contrast

On white

4.79
#B040C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B040C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040C5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040C5#FFFFFF#000000##FFFFFF
##B040C51.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC9
Deuteranopia (green-blind)
#4E76C2
Tritanopia (blue-blind)
#B1577E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b040c5;
/* rgb */ color: rgb(176, 64, 197);
/* oklch */ color: oklch(58.1% 0.214 320.9);
Tailwind
colors: {
  custom: {
    50: '#cb7ed7',
    500: '#b040c5',
    950: '#000000',
  },
}
SCSS
$custom: #b040c5;
$custom-light: #cb7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#b040c5",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 290.526,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58061,
    "c": 0.21351,
    "h": 320.9
  },
  "luminance": 0.16928
}

Semantic roles & 50–950 ramp

primary
#B040C5
secondary
#9CCE93
accent
#DD4B62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B040C5

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

Preview Lab → · Contrast checker → · Palette generator →

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