#B140B7#B140B7

#B140B7 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.202 H 325.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B140B7
RGBrgb(177, 64, 183)
HSLhsl(297, 48%, 48%)
HSVhsv(297, 65%, 72%)
CMYKcmyk(3.3%, 65%, 0%, 28.2%)
CIE-LABlab(47.54, 60.83, -41.02)
CIE-LCHlch(47.54, 73.37, 326.01°)
OKLaboklab(57.38% 0.1669 -0.1137)
OKLCHoklch(57.38% 0.202 325.7)
XYZxyz(28.5115, 16.4346, 46.4610)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140B7 #46B740
analogous
#7540B7 #B140B7 #B74081
triadic
#B140B7 #B7B140 #40B7B1
tetradic
#B140B7 #B77540 #46B740 #4081B7
square
#B140B7 #B77540 #46B740 #4081B7
split-complementary
#B140B7 #81B740 #40B775
monochromatic
#59205C #85308A #B140B7 #C669CB #D797DB

Accessibility & contrast

On white

4.90
#B140B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B140B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140B7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140B7#FFFFFF#000000##FFFFFF
##B140B71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BB
Deuteranopia (green-blind)
#5876B4
Tritanopia (blue-blind)
#B55176
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b140b7;
/* rgb */ color: rgb(177, 64, 183);
/* oklch */ color: oklch(57.4% 0.202 325.7);
Tailwind
colors: {
  custom: {
    50: '#cc7dcd',
    500: '#b140b7',
    950: '#000000',
  },
}
SCSS
$custom: #b140b7;
$custom-light: #cc7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#b140b7",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 296.975,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57384,
    "c": 0.20192,
    "h": 325.7
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

primary
#B140B7
secondary
#8FC68D
accent
#D85057
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B140B7

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

Preview Lab → · Contrast checker → · Palette generator →

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