#B140B4#B140B4

#B140B4 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.199 H 326.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B140B4
RGBrgb(177, 64, 180)
HSLhsl(298, 48%, 48%)
HSVhsv(298, 64%, 71%)
CMYKcmyk(1.7%, 64.4%, 0%, 29.4%)
CIE-LABlab(47.38, 60.30, -39.52)
CIE-LCHlch(47.38, 72.10, 326.76°)
OKLaboklab(57.22% 0.1667 -0.1094)
OKLCHoklch(57.22% 0.199 326.7)
XYZxyz(28.2026, 16.3110, 44.8340)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140B4 #43B440
analogous
#7740B4 #B140B4 #B4407D
triadic
#B140B4 #B4B140 #40B4B1
tetradic
#B140B4 #B47740 #43B440 #407DB4
square
#B140B4 #B47740 #43B440 #407DB4
split-complementary
#B140B4 #7DB440 #40B477
monochromatic
#58205A #853087 #B140B4 #C768C9 #D895D9

Accessibility & contrast

On white

4.93
#B140B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B140B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140B4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140B4#FFFFFF#000000##FFFFFF
##B140B41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B7
Deuteranopia (green-blind)
#5A75B1
Tritanopia (blue-blind)
#B65074
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b140b4;
/* rgb */ color: rgb(177, 64, 180);
/* oklch */ color: oklch(57.2% 0.199 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb7dcb',
    500: '#b140b4',
    950: '#000000',
  },
}
SCSS
$custom: #b140b4;
$custom-light: #cb7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#b140b4",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 298.448,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57217,
    "c": 0.19941,
    "h": 326.7
  },
  "luminance": 0.16309
}

Semantic roles & 50–950 ramp

primary
#B140B4
secondary
#8CC58B
accent
#D75154
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B140B4

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

Preview Lab → · Contrast checker → · Palette generator →

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