#B140D4#B140D4

#B140D4 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.227 H 317.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B140D4
RGBrgb(177, 64, 212)
HSLhsl(286, 63%, 54%)
HSVhsv(286, 70%, 83%)
CMYKcmyk(16.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(49.21, 66.18, -55.12)
CIE-LCHlch(49.21, 86.13, 320.21°)
OKLaboklab(59.13% 0.1662 -0.1549)
OKLCHoklch(59.13% 0.227 317)
XYZxyz(31.8468, 17.7687, 64.0267)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140D4 #63D440
analogous
#6740D4 #B140D4 #D440AD
triadic
#B140D4 #D4B140 #40D4B1
tetradic
#B140D4 #D46740 #63D440 #40ADD4
square
#B140D4 #D46740 #63D440 #40ADD4
split-complementary
#B140D4 #ADD440 #40D467
monochromatic
#661C7D #8F27AF #B140D4 #C572DF #DAA4EA

Accessibility & contrast

On white

4.61
#B140D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B140D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B140D4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140D4#FFFFFF#000000##FFFFFF
##B140D41.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#4378D1
Tritanopia (blue-blind)
#AF5D86
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b140d4;
/* rgb */ color: rgb(177, 64, 212);
/* oklch */ color: oklch(59.1% 0.227 317.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ee2',
    500: '#b140d4',
    950: '#000000',
  },
}
SCSS
$custom: #b140d4;
$custom-light: #cc7ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#b140d4",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 285.811,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59125,
    "c": 0.22715,
    "h": 317
  },
  "luminance": 0.17767
}

Semantic roles & 50–950 ramp

primary
#B140D4
secondary
#A7D798
accent
#E64268
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B140D4

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

Preview Lab → · Contrast checker → · Palette generator →

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