#B040C1#B040C1

#B040C1 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.210 H 322.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B040C1
RGBrgb(176, 64, 193)
HSLhsl(292, 51%, 50%)
HSVhsv(292, 67%, 76%)
CMYKcmyk(8.8%, 66.8%, 0%, 24.3%)
CIE-LABlab(47.94, 62.39, -46.21)
CIE-LCHlch(47.94, 77.64, 323.47°)
OKLaboklab(57.82% 0.1658 -0.1289)
OKLCHoklch(57.82% 0.21 322.1)
XYZxyz(29.3625, 16.7487, 52.1280)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040C1 #51C140
analogous
#6F40C1 #B040C1 #C14091
triadic
#B040C1 #C1B040 #40C1B0
tetradic
#B040C1 #C16F40 #51C140 #4091C1
square
#B040C1 #C16F40 #51C140 #4091C1
split-complementary
#B040C1 #91C140 #40C16F
monochromatic
#5D2166 #873094 #B040C1 #C36ED0 #D69CDF

Accessibility & contrast

On white

4.83
#B040C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B040C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040C1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040C1#FFFFFF#000000##FFFFFF
##B040C11.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6AC5
Deuteranopia (green-blind)
#5176BE
Tritanopia (blue-blind)
#B2567B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b040c1;
/* rgb */ color: rgb(176, 64, 193);
/* oklch */ color: oklch(57.8% 0.210 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ed4',
    500: '#b040c1',
    950: '#000000',
  },
}
SCSS
$custom: #b040c1;
$custom-light: #cb7ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#b040c1",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 292.093,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.21002,
    "h": 322.1
  },
  "luminance": 0.16747
}

Semantic roles & 50–950 ramp

primary
#B040C1
secondary
#99CB92
accent
#DA4D60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B040C1

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

Preview Lab → · Contrast checker → · Palette generator →

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