#B140A4#B140A4

#B140A4 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.186 H 332.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B140A4
RGBrgb(177, 64, 164)
HSLhsl(307, 47%, 47%)
HSVhsv(307, 64%, 69%)
CMYKcmyk(0%, 63.8%, 7.3%, 30.6%)
CIE-LABlab(46.57, 57.61, -31.35)
CIE-LCHlch(46.57, 65.59, 331.44°)
OKLaboklab(56.37% 0.1655 -0.0858)
OKLCHoklch(56.37% 0.186 332.6)
XYZxyz(26.6657, 15.6963, 36.7400)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140A4 #40B14D
analogous
#8640B1 #B140A4 #B1406B
triadic
#B140A4 #A4B140 #40A4B1
tetradic
#B140A4 #B18640 #40B14D #406BB1
square
#B140A4 #B18640 #40B14D #406BB1
split-complementary
#B140A4 #6BB140 #40B186
monochromatic
#571F51 #84307A #B140A4 #C866BD #D893D0

Accessibility & contrast

On white

5.07
#B140A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B140A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140A4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140A4#FFFFFF#000000##FFFFFF
##B140A41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A7
Deuteranopia (green-blind)
#6274A1
Tritanopia (blue-blind)
#B84A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b140a4;
/* rgb */ color: rgb(177, 64, 164);
/* oklch */ color: oklch(56.4% 0.186 332.6);
Tailwind
colors: {
  custom: {
    50: '#cb7dbf',
    500: '#b140a4',
    950: '#000000',
  },
}
SCSS
$custom: #b140a4;
$custom-light: #cb7dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b140a4",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 306.903,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5637,
    "c": 0.1864,
    "h": 332.6
  },
  "luminance": 0.15694
}

Semantic roles & 50–950 ramp

primary
#B140A4
secondary
#89C390
accent
#D76151
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B140A4

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

Preview Lab → · Contrast checker → · Palette generator →

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