#B140C4#B140C4

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

Color values

HEX#B140C4
RGBrgb(177, 64, 196)
HSLhsl(291, 53%, 51%)
HSVhsv(291, 67%, 77%)
CMYKcmyk(9.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(48.26, 63.17, -47.44)
CIE-LCHlch(48.26, 79.00, 323.10°)
OKLaboklab(58.14% 0.1669 -0.1324)
OKLCHoklch(58.14% 0.213 321.6)
XYZxyz(29.9276, 17.0010, 53.9190)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140C4 #53C440
analogous
#6F40C4 #B140C4 #C44095
triadic
#B140C4 #C4B140 #40C4B1
tetradic
#B140C4 #C46F40 #53C440 #4095C4
square
#B140C4 #C46F40 #53C440 #4095C4
split-complementary
#B140C4 #95C440 #40C46F
monochromatic
#5F2069 #892F98 #B140C4 #C46FD2 #D79EE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B140C4#FFFFFF#000000##FFFFFF
##B140C41.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)
#166AC8
Deuteranopia (green-blind)
#5077C1
Tritanopia (blue-blind)
#B3577D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b140c4;
/* rgb */ color: rgb(177, 64, 196);
/* oklch */ color: oklch(58.1% 0.213 321.6);
Tailwind
colors: {
  custom: {
    50: '#cc7ed6',
    500: '#b140c4',
    950: '#000000',
  },
}
SCSS
$custom: #b140c4;
$custom-light: #cc7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b140c4",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 291.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58137,
    "c": 0.21308,
    "h": 321.6
  },
  "luminance": 0.16999
}

Semantic roles & 50–950 ramp

primary
#B140C4
secondary
#9BCD93
accent
#DC4C60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B140C4

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

Preview Lab → · Contrast checker → · Palette generator →

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