#B240D1#B240D1

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

Color values

HEX#B240D1
RGBrgb(178, 64, 209)
HSLhsl(287, 61%, 54%)
HSVhsv(287, 69%, 82%)
CMYKcmyk(14.8%, 69.4%, 0%, 18%)
CIE-LABlab(49.18, 65.82, -53.46)
CIE-LCHlch(49.18, 84.79, 320.92°)
OKLaboklab(59.07% 0.1676 -0.15)
OKLCHoklch(59.07% 0.225 318.2)
XYZxyz(31.7005, 17.7366, 62.0629)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240D1 #5FD140
analogous
#6940D1 #B240D1 #D140A8
triadic
#B240D1 #D1B240 #40D1B2
tetradic
#B240D1 #D16940 #5FD140 #40A8D1
square
#B240D1 #D16940 #5FD140 #40A8D1
split-complementary
#B240D1 #A8D140 #40D169
monochromatic
#661D79 #8F29AB #B240D1 #C671DD #DAA3E9

Accessibility & contrast

On white

4.62
#B240D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B240D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240D1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240D1#FFFFFF#000000##FFFFFF
##B240D11.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#4778CE
Tritanopia (blue-blind)
#B15C84
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b240d1;
/* rgb */ color: rgb(178, 64, 209);
/* oklch */ color: oklch(59.1% 0.225 318.2);
Tailwind
colors: {
  custom: {
    50: '#cd7ee0',
    500: '#b240d1',
    950: '#000000',
  },
}
SCSS
$custom: #b240d1;
$custom-light: #cd7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#b240d1",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 287.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59068,
    "c": 0.22489,
    "h": 318.2
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#B240D1
secondary
#A5D597
accent
#E44466
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240D1

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

Preview Lab → · Contrast checker → · Palette generator →

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