#B140B2#B140B2

#B140B2 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.198 H 327.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B140B2
RGBrgb(177, 64, 178)
HSLhsl(299, 47%, 47%)
HSVhsv(299, 64%, 70%)
CMYKcmyk(0.6%, 64%, 0%, 30.2%)
CIE-LABlab(47.27, 59.96, -38.51)
CIE-LCHlch(47.27, 71.26, 327.29°)
OKLaboklab(57.11% 0.1666 -0.1064)
OKLCHoklch(57.11% 0.198 327.4)
XYZxyz(28.0003, 16.2301, 43.7688)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140B2 #41B240
analogous
#7840B2 #B140B2 #B2407A
triadic
#B140B2 #B2B140 #40B2B1
tetradic
#B140B2 #B27840 #41B240 #407AB2
square
#B140B2 #B27840 #41B240 #407AB2
split-complementary
#B140B2 #7AB240 #40B278
monochromatic
#572058 #843085 #B140B2 #C767C8 #D894D8

Accessibility & contrast

On white

4.95
#B140B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B140B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140B2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140B2#FFFFFF#000000##FFFFFF
##B140B21.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B5
Deuteranopia (green-blind)
#5B75AF
Tritanopia (blue-blind)
#B64F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b140b2;
/* rgb */ color: rgb(177, 64, 178);
/* oklch */ color: oklch(57.1% 0.198 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dc9',
    500: '#b140b2',
    950: '#000000',
  },
}
SCSS
$custom: #b140b2;
$custom-light: #cb7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b140b2",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 299.474,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57107,
    "c": 0.19774,
    "h": 327.4
  },
  "luminance": 0.16228
}

Semantic roles & 50–950 ramp

primary
#B140B2
secondary
#8AC48A
accent
#D75152
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B140B2

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

Preview Lab → · Contrast checker → · Palette generator →

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