#B140A8#B140A8

#B140A8 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.190 H 331.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B140A8
RGBrgb(177, 64, 168)
HSLhsl(305, 47%, 47%)
HSVhsv(305, 64%, 69%)
CMYKcmyk(0%, 63.8%, 5.1%, 30.6%)
CIE-LABlab(46.77, 58.27, -33.42)
CIE-LCHlch(46.77, 67.17, 330.16°)
OKLaboklab(56.58% 0.1659 -0.0917)
OKLCHoklch(56.58% 0.19 331.1)
XYZxyz(27.0327, 15.8430, 38.6724)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140A8 #40B149
analogous
#8240B1 #B140A8 #B1406F
triadic
#B140A8 #A8B140 #40A8B1
tetradic
#B140A8 #B18240 #40B149 #406FB1
square
#B140A8 #B18240 #40B149 #406FB1
split-complementary
#B140A8 #6FB140 #40B182
monochromatic
#571F53 #84307D #B140A8 #C866C0 #D893D3

Accessibility & contrast

On white

5.04
#B140A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B140A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140A8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140A8#FFFFFF#000000##FFFFFF
##B140A81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AB
Deuteranopia (green-blind)
#6074A5
Tritanopia (blue-blind)
#B84B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b140a8;
/* rgb */ color: rgb(177, 64, 168);
/* oklch */ color: oklch(56.6% 0.190 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb7dc2',
    500: '#b140a8',
    950: '#000000',
  },
}
SCSS
$custom: #b140a8;
$custom-light: #cb7dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b140a8",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 304.779,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56575,
    "c": 0.18957,
    "h": 331.1
  },
  "luminance": 0.15841
}

Semantic roles & 50–950 ramp

primary
#B140A8
secondary
#89C38E
accent
#D75C51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B140A8

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

Preview Lab → · Contrast checker → · Palette generator →

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