#B240CE#B240CE

#B240CE is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.222 H 319.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B240CE
RGBrgb(178, 64, 206)
HSLhsl(288, 59%, 53%)
HSVhsv(288, 69%, 81%)
CMYKcmyk(13.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(48.99, 65.25, -52.02)
CIE-LCHlch(48.99, 83.45, 321.44°)
OKLaboklab(58.88% 0.1677 -0.1458)
OKLCHoklch(58.88% 0.222 319)
XYZxyz(31.3326, 17.5895, 60.1252)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CE #5CCE40
analogous
#6B40CE #B240CE #CE40A3
triadic
#B240CE #CEB240 #40CEB2
tetradic
#B240CE #CE6B40 #5CCE40 #40A3CE
square
#B240CE #CE6B40 #5CCE40 #40A3CE
split-complementary
#B240CE #A3CE40 #40CE6B
monochromatic
#641E75 #8E2BA6 #B240CE #C671DA #D9A1E7

Accessibility & contrast

On white

4.65
#B240CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B240CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CE#FFFFFF#000000##FFFFFF
##B240CE1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#4978CB
Tritanopia (blue-blind)
#B25B83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240ce;
/* rgb */ color: rgb(178, 64, 206);
/* oklch */ color: oklch(58.9% 0.222 319.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ede',
    500: '#b240ce',
    950: '#000000',
  },
}
SCSS
$custom: #b240ce;
$custom-light: #cd7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ce",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 288.169,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58881,
    "c": 0.22224,
    "h": 319
  },
  "luminance": 0.17588
}

Semantic roles & 50–950 ramp

primary
#B240CE
secondary
#A2D496
accent
#E24564
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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