#B140A2#B140A2

#B140A2 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.3% C 0.185 H 333.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B140A2
RGBrgb(177, 64, 162)
HSLhsl(308, 47%, 47%)
HSVhsv(308, 64%, 69%)
CMYKcmyk(0%, 63.8%, 8.5%, 30.6%)
CIE-LABlab(46.48, 57.28, -30.31)
CIE-LCHlch(46.48, 64.81, 332.11°)
OKLaboklab(56.27% 0.1652 -0.0828)
OKLCHoklch(56.27% 0.185 333.4)
XYZxyz(26.4865, 15.6246, 35.7963)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140A2 #40B14F
analogous
#8840B1 #B140A2 #B14069
triadic
#B140A2 #A2B140 #40A2B1
tetradic
#B140A2 #B18840 #40B14F #4069B1
square
#B140A2 #B18840 #40B14F #4069B1
split-complementary
#B140A2 #69B140 #40B188
monochromatic
#571F50 #843079 #B140A2 #C866BB #D893CF

Accessibility & contrast

On white

5.09
#B140A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B140A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140A2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140A2#FFFFFF#000000##FFFFFF
##B140A21.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#B9496B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b140a2;
/* rgb */ color: rgb(177, 64, 162);
/* oklch */ color: oklch(56.3% 0.185 333.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dbe',
    500: '#b140a2',
    950: '#000000',
  },
}
SCSS
$custom: #b140a2;
$custom-light: #cb7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b140a2",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 307.965,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56269,
    "c": 0.18483,
    "h": 333.4
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#B140A2
secondary
#89C391
accent
#D76351
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B140A2

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

Preview Lab → · Contrast checker → · Palette generator →

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