#B140B3#B140B3

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

Color values

HEX#B140B3
RGBrgb(177, 64, 179)
HSLhsl(299, 47%, 48%)
HSVhsv(299, 64%, 70%)
CMYKcmyk(1.1%, 64.2%, 0%, 29.8%)
CIE-LABlab(47.33, 60.13, -39.01)
CIE-LCHlch(47.33, 71.68, 327.02°)
OKLaboklab(57.16% 0.1667 -0.1079)
OKLCHoklch(57.16% 0.199 327.1)
XYZxyz(28.1011, 16.2704, 44.2995)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140B3 #42B340
analogous
#7840B3 #B140B3 #B3407B
triadic
#B140B3 #B3B140 #40B3B1
tetradic
#B140B3 #B37840 #42B340 #407BB3
square
#B140B3 #B37840 #42B340 #407BB3
split-complementary
#B140B3 #7BB340 #40B378
monochromatic
#582059 #843086 #B140B3 #C767C9 #D894D9

Accessibility & contrast

On white

4.94
#B140B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B140B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140B3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140B3#FFFFFF#000000##FFFFFF
##B140B31.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b140b3;
/* rgb */ color: rgb(177, 64, 179);
/* oklch */ color: oklch(57.2% 0.199 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb7dca',
    500: '#b140b3',
    950: '#000000',
  },
}
SCSS
$custom: #b140b3;
$custom-light: #cb7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#b140b3",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 298.957,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.19857,
    "h": 327.1
  },
  "luminance": 0.16269
}

Semantic roles & 50–950 ramp

primary
#B140B3
secondary
#8BC48A
accent
#D75153
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B140B3

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

Preview Lab → · Contrast checker → · Palette generator →

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