#B240C1#B240C1

#B240C1 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.211 H 322.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B240C1
RGBrgb(178, 64, 193)
HSLhsl(293, 51%, 50%)
HSVhsv(293, 67%, 76%)
CMYKcmyk(7.8%, 66.8%, 0%, 24.3%)
CIE-LABlab(48.24, 62.85, -45.72)
CIE-LCHlch(48.24, 77.72, 323.96°)
OKLaboklab(58.1% 0.1681 -0.1274)
OKLCHoklch(58.1% 0.211 322.9)
XYZxyz(29.8182, 16.9837, 52.1493)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C1 #4FC140
analogous
#7140C1 #B240C1 #C14090
triadic
#B240C1 #C1B240 #40C1B2
tetradic
#B240C1 #C17140 #4FC140 #4090C1
square
#B240C1 #C17140 #4FC140 #4090C1
split-complementary
#B240C1 #90C140 #40C171
monochromatic
#5E2166 #883094 #B240C1 #C56ED0 #D79CDF

Accessibility & contrast

On white

4.78
#B240C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B240C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C1#FFFFFF#000000##FFFFFF
##B240C11.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC5
Deuteranopia (green-blind)
#5377BE
Tritanopia (blue-blind)
#B5557B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b240c1;
/* rgb */ color: rgb(178, 64, 193);
/* oklch */ color: oklch(58.1% 0.211 322.9);
Tailwind
colors: {
  custom: {
    50: '#cc7ed4',
    500: '#b240c1',
    950: '#000000',
  },
}
SCSS
$custom: #b240c1;
$custom-light: #cc7ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c1",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 293.023,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58096,
    "c": 0.21093,
    "h": 322.9
  },
  "luminance": 0.16982
}

Semantic roles & 50–950 ramp

primary
#B240C1
secondary
#98CB92
accent
#DA4D5E
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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