#B140D2#B140D2

#B140D2 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.225 H 317.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B140D2
RGBrgb(177, 64, 210)
HSLhsl(286, 62%, 54%)
HSVhsv(286, 70%, 82%)
CMYKcmyk(15.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(49.09, 65.80, -54.17)
CIE-LCHlch(49.09, 85.23, 320.54°)
OKLaboklab(59% 0.1663 -0.1521)
OKLCHoklch(59% 0.225 317.6)
XYZxyz(31.5960, 17.6684, 62.7063)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140D2 #61D240
analogous
#6840D2 #B140D2 #D240AA
triadic
#B140D2 #D2B140 #40D2B1
tetradic
#B140D2 #D26840 #61D240 #40AAD2
square
#B140D2 #D26840 #61D240 #40AAD2
split-complementary
#B140D2 #AAD240 #40D268
monochromatic
#651D7B #8E29AC #B140D2 #C572DE #D9A3E9

Accessibility & contrast

On white

4.63
#B140D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B140D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B140D2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140D2#FFFFFF#000000##FFFFFF
##B140D21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#4578CF
Tritanopia (blue-blind)
#B05D85
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b140d2;
/* rgb */ color: rgb(177, 64, 210);
/* oklch */ color: oklch(59.0% 0.225 317.6);
Tailwind
colors: {
  custom: {
    50: '#cc7ee0',
    500: '#b140d2',
    950: '#000000',
  },
}
SCSS
$custom: #b140d2;
$custom-light: #cc7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#b140d2",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 286.438,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58998,
    "c": 0.22537,
    "h": 317.6
  },
  "luminance": 0.17667
}

Semantic roles & 50–950 ramp

primary
#B140D2
secondary
#A6D698
accent
#E54367
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B140D2

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

Preview Lab → · Contrast checker → · Palette generator →

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