#B140C6#B140C6

#B140C6 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.215 H 321.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B140C6
RGBrgb(177, 64, 198)
HSLhsl(291, 54%, 51%)
HSVhsv(291, 68%, 78%)
CMYKcmyk(10.6%, 67.7%, 0%, 22.4%)
CIE-LABlab(48.38, 63.54, -48.41)
CIE-LCHlch(48.38, 79.88, 322.70°)
OKLaboklab(58.26% 0.1669 -0.1352)
OKLCHoklch(58.26% 0.215 321)
XYZxyz(30.1567, 17.0927, 55.1259)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140C6 #55C640
analogous
#6E40C6 #B140C6 #C64098
triadic
#B140C6 #C6B140 #40C6B1
tetradic
#B140C6 #C66E40 #55C640 #4098C6
square
#B140C6 #C66E40 #55C640 #4098C6
split-complementary
#B140C6 #98C640 #40C66E
monochromatic
#60206C #8A2E9B #B140C6 #C46FD4 #D79EE2

Accessibility & contrast

On white

4.75
#B140C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B140C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140C6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140C6#FFFFFF#000000##FFFFFF
##B140C61.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106BCA
Deuteranopia (green-blind)
#4E77C3
Tritanopia (blue-blind)
#B2587E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b140c6;
/* rgb */ color: rgb(177, 64, 198);
/* oklch */ color: oklch(58.3% 0.215 321.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ed8',
    500: '#b140c6',
    950: '#000000',
  },
}
SCSS
$custom: #b140c6;
$custom-light: #cc7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#b140c6",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 290.597,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58257,
    "c": 0.21481,
    "h": 321
  },
  "luminance": 0.17091
}

Semantic roles & 50–950 ramp

primary
#B140C6
secondary
#9DCE93
accent
#DD4A61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B140C6

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

Preview Lab → · Contrast checker → · Palette generator →

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