#B140C9#B140C9

#B140C9 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.217 H 320.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B140C9
RGBrgb(177, 64, 201)
HSLhsl(289, 56%, 52%)
HSVhsv(289, 68%, 79%)
CMYKcmyk(11.9%, 68.2%, 0%, 21.2%)
CIE-LABlab(48.55, 64.10, -49.86)
CIE-LCHlch(48.55, 81.21, 322.12°)
OKLaboklab(58.44% 0.1668 -0.1395)
OKLCHoklch(58.44% 0.217 320.1)
XYZxyz(30.5062, 17.2324, 56.9663)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140C9 #58C940
analogous
#6D40C9 #B140C9 #C9409D
triadic
#B140C9 #C9B140 #40C9B1
tetradic
#B140C9 #C96D40 #58C940 #409DC9
square
#B140C9 #C96D40 #58C940 #409DC9
split-complementary
#B140C9 #9DC940 #40C96D
monochromatic
#611F6F #8B2D9F #B140C9 #C470D6 #D89FE4

Accessibility & contrast

On white

4.72
#B140C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B140C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140C9
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140C9#FFFFFF#000000##FFFFFF
##B140C91.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046CCD
Deuteranopia (green-blind)
#4C77C6
Tritanopia (blue-blind)
#B25980
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b140c9;
/* rgb */ color: rgb(177, 64, 201);
/* oklch */ color: oklch(58.4% 0.217 320.1);
Tailwind
colors: {
  custom: {
    50: '#cc7eda',
    500: '#b140c9',
    950: '#000000',
  },
}
SCSS
$custom: #b140c9;
$custom-light: #cc7eda;
$custom-dark: #000000;
JSON
{
  "hex": "#b140c9",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 289.489,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58439,
    "c": 0.21744,
    "h": 320.1
  },
  "luminance": 0.17231
}

Semantic roles & 50–950 ramp

primary
#B140C9
secondary
#9FD094
accent
#DF4963
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B140C9

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

Preview Lab → · Contrast checker → · Palette generator →

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