#B140CB#B140CB

#B140CB is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.219 H 319.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B140CB
RGBrgb(177, 64, 203)
HSLhsl(289, 57%, 52%)
HSVhsv(289, 68%, 80%)
CMYKcmyk(12.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.67, 64.47, -50.83)
CIE-LCHlch(48.67, 82.10, 321.75°)
OKLaboklab(58.56% 0.1667 -0.1423)
OKLCHoklch(58.56% 0.219 319.5)
XYZxyz(30.7430, 17.3272, 58.2135)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140CB #5ACB40
analogous
#6C40CB #B140CB #CB40A0
triadic
#B140CB #CBB140 #40CBB1
tetradic
#B140CB #CB6C40 #5ACB40 #40A0CB
square
#B140CB #CB6C40 #5ACB40 #40A0CB
split-complementary
#B140CB #A0CB40 #40CB6C
monochromatic
#621F72 #8C2CA2 #B140CB #C570D8 #D8A0E5

Accessibility & contrast

On white

4.70
#B140CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B140CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140CB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140CB#FFFFFF#000000##FFFFFF
##B140CB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#4B77C8
Tritanopia (blue-blind)
#B15A81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b140cb;
/* rgb */ color: rgb(177, 64, 203);
/* oklch */ color: oklch(58.6% 0.219 319.5);
Tailwind
colors: {
  custom: {
    50: '#cc7edb',
    500: '#b140cb',
    950: '#000000',
  },
}
SCSS
$custom: #b140cb;
$custom-light: #cc7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b140cb",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 288.777,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58561,
    "c": 0.21919,
    "h": 319.5
  },
  "luminance": 0.17326
}

Semantic roles & 50–950 ramp

primary
#B140CB
secondary
#A0D295
accent
#E04764
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B140CB

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

Preview Lab → · Contrast checker → · Palette generator →

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