#B240C5#B240C5

#B240C5 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.214 H 321.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B240C5
RGBrgb(178, 64, 197)
HSLhsl(291, 53%, 51%)
HSVhsv(291, 68%, 77%)
CMYKcmyk(9.6%, 67.5%, 0%, 22.7%)
CIE-LABlab(48.47, 63.58, -47.68)
CIE-LCHlch(48.47, 79.47, 323.13°)
OKLaboklab(58.33% 0.1681 -0.1331)
OKLCHoklch(58.33% 0.214 321.6)
XYZxyz(30.2704, 17.1646, 54.5312)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C5 #53C540
analogous
#6F40C5 #B240C5 #C54095
triadic
#B240C5 #C5B240 #40C5B2
tetradic
#B240C5 #C56F40 #53C540 #4095C5
square
#B240C5 #C56F40 #53C540 #4095C5
split-complementary
#B240C5 #95C540 #40C56F
monochromatic
#60206A #8A2F99 #B240C5 #C56FD3 #D89EE2

Accessibility & contrast

On white

4.74
#B240C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B240C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C5#FFFFFF#000000##FFFFFF
##B240C51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156BC9
Deuteranopia (green-blind)
#5077C2
Tritanopia (blue-blind)
#B4577E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b240c5;
/* rgb */ color: rgb(178, 64, 197);
/* oklch */ color: oklch(58.3% 0.214 321.6);
Tailwind
colors: {
  custom: {
    50: '#cd7ed7',
    500: '#b240c5',
    950: '#000000',
  },
}
SCSS
$custom: #b240c5;
$custom-light: #cd7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c5",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 291.429,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58333,
    "c": 0.21439,
    "h": 321.6
  },
  "luminance": 0.17163
}

Semantic roles & 50–950 ramp

primary
#B240C5
secondary
#9BCE93
accent
#DD4B60
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B240C5

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

Preview Lab → · Contrast checker → · Palette generator →

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