#B140C7#B140C7

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

Color values

HEX#B140C7
RGBrgb(177, 64, 199)
HSLhsl(290, 55%, 52%)
HSVhsv(290, 68%, 78%)
CMYKcmyk(11.1%, 67.8%, 0%, 22%)
CIE-LABlab(48.43, 63.72, -48.89)
CIE-LCHlch(48.43, 80.32, 322.50°)
OKLaboklab(58.32% 0.1669 -0.1367)
OKLCHoklch(58.32% 0.216 320.7)
XYZxyz(30.2724, 17.1390, 55.7353)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140C7 #56C740
analogous
#6E40C7 #B140C7 #C7409A
triadic
#B140C7 #C7B140 #40C7B1
tetradic
#B140C7 #C76E40 #56C740 #409AC7
square
#B140C7 #C76E40 #56C740 #409AC7
split-complementary
#B140C7 #9AC740 #40C76E
monochromatic
#60206D #8A2E9C #B140C7 #C46FD5 #D89FE3

Accessibility & contrast

On white

4.74
#B140C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B140C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140C7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140C7#FFFFFF#000000##FFFFFF
##B140C71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6BCB
Deuteranopia (green-blind)
#4E77C4
Tritanopia (blue-blind)
#B2587F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b140c7;
/* rgb */ color: rgb(177, 64, 199);
/* oklch */ color: oklch(58.3% 0.216 320.7);
Tailwind
colors: {
  custom: {
    50: '#cc7ed9',
    500: '#b140c7',
    950: '#000000',
  },
}
SCSS
$custom: #b140c7;
$custom-light: #cc7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#b140c7",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 290.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58317,
    "c": 0.21569,
    "h": 320.7
  },
  "luminance": 0.17137
}

Semantic roles & 50–950 ramp

primary
#B140C7
secondary
#9DCF94
accent
#DE4A62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #B140C7

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

Preview Lab → · Contrast checker → · Palette generator →

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