#B140CA#B140CA

#B140CA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.218 H 319.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B140CA
RGBrgb(177, 64, 202)
HSLhsl(289, 57%, 52%)
HSVhsv(289, 68%, 79%)
CMYKcmyk(12.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(48.61, 64.28, -50.34)
CIE-LCHlch(48.61, 81.65, 321.93°)
OKLaboklab(58.5% 0.1668 -0.1409)
OKLCHoklch(58.5% 0.218 319.8)
XYZxyz(30.6242, 17.2797, 57.5879)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B140CA #59CA40
analogous
#6C40CA #B140CA #CA409E
triadic
#B140CA #CAB140 #40CAB1
tetradic
#B140CA #CA6C40 #59CA40 #409ECA
square
#B140CA #CA6C40 #59CA40 #409ECA
split-complementary
#B140CA #9ECA40 #40CA6C
monochromatic
#621F70 #8B2CA0 #B140CA #C570D7 #D8A0E5

Accessibility & contrast

On white

4.71
#B140CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B140CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B140CA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B140CA#FFFFFF#000000##FFFFFF
##B140CA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#4B77C7
Tritanopia (blue-blind)
#B25980
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b140ca;
/* rgb */ color: rgb(177, 64, 202);
/* oklch */ color: oklch(58.5% 0.218 319.8);
Tailwind
colors: {
  custom: {
    50: '#cc7edb',
    500: '#b140ca',
    950: '#000000',
  },
}
SCSS
$custom: #b140ca;
$custom-light: #cc7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b140ca",
  "rgb": {
    "r": 177,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 289.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.585,
    "c": 0.21832,
    "h": 319.8
  },
  "luminance": 0.17278
}

Semantic roles & 50–950 ramp

primary
#B140CA
secondary
#A0D195
accent
#E04863
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B140CA

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

Preview Lab → · Contrast checker → · Palette generator →

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