#B240BD#B240BD

#B240BD is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.208 H 324.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B240BD
RGBrgb(178, 64, 189)
HSLhsl(295, 49%, 50%)
HSVhsv(295, 66%, 74%)
CMYKcmyk(5.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(48.02, 62.13, -43.75)
CIE-LCHlch(48.02, 75.99, 324.85°)
OKLaboklab(57.86% 0.1681 -0.1216)
OKLCHoklch(57.86% 0.208 324.1)
XYZxyz(29.3780, 16.8076, 49.8310)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240BD #4BBD40
analogous
#7440BD #B240BD #BD408A
triadic
#B240BD #BDB240 #40BDB2
tetradic
#B240BD #BD7440 #4BBD40 #408ABD
square
#B240BD #BD7440 #4BBD40 #408ABD
split-complementary
#B240BD #8ABD40 #40BD74
monochromatic
#5C2162 #87318F #B240BD #C56DCD #D79ADD

Accessibility & contrast

On white

4.82
#B240BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B240BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240BD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240BD#FFFFFF#000000##FFFFFF
##B240BD1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2469C1
Deuteranopia (green-blind)
#5577BA
Tritanopia (blue-blind)
#B55479
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b240bd;
/* rgb */ color: rgb(178, 64, 189);
/* oklch */ color: oklch(57.9% 0.208 324.1);
Tailwind
colors: {
  custom: {
    50: '#cc7ed1',
    500: '#b240bd',
    950: '#000000',
  },
}
SCSS
$custom: #b240bd;
$custom-light: #cc7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b240bd",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 294.72,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57864,
    "c": 0.20752,
    "h": 324.1
  },
  "luminance": 0.16806
}

Semantic roles & 50–950 ramp

primary
#B240BD
secondary
#95C990
accent
#D94F5B
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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