#B240C7#B240C7

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

Color values

HEX#B240C7
RGBrgb(178, 64, 199)
HSLhsl(291, 55%, 52%)
HSVhsv(291, 68%, 78%)
CMYKcmyk(10.6%, 67.8%, 0%, 22%)
CIE-LABlab(48.58, 63.95, -48.65)
CIE-LCHlch(48.58, 80.35, 322.74°)
OKLaboklab(58.45% 0.168 -0.1359)
OKLCHoklch(58.45% 0.216 321)
XYZxyz(30.5011, 17.2569, 55.7461)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C7 #55C740
analogous
#6F40C7 #B240C7 #C74099
triadic
#B240C7 #C7B240 #40C7B2
tetradic
#B240C7 #C76F40 #55C740 #4099C7
square
#B240C7 #C76F40 #55C740 #4099C7
split-complementary
#B240C7 #99C740 #40C76F
monochromatic
#61206D #8B2E9C #B240C7 #C56FD5 #D89FE3

Accessibility & contrast

On white

4.72
#B240C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B240C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C7#FFFFFF#000000##FFFFFF
##B240C71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6BCB
Deuteranopia (green-blind)
#4F78C4
Tritanopia (blue-blind)
#B3587F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b240c7;
/* rgb */ color: rgb(178, 64, 199);
/* oklch */ color: oklch(58.5% 0.216 321.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ed8',
    500: '#b240c7',
    950: '#000000',
  },
}
SCSS
$custom: #b240c7;
$custom-light: #cd7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c7",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 290.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58453,
    "c": 0.21612,
    "h": 321
  },
  "luminance": 0.17255
}

Semantic roles & 50–950 ramp

primary
#B240C7
secondary
#9DCF94
accent
#DE4A61
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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