#B240E2#B240E2

#B240E2 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.2% C 0.240 H 313.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B240E2
RGBrgb(178, 64, 226)
HSLhsl(282, 74%, 57%)
HSVhsv(282, 72%, 89%)
CMYKcmyk(21.2%, 71.7%, 0%, 11.4%)
CIE-LABlab(50.24, 69.12, -61.42)
CIE-LCHlch(50.24, 92.47, 318.37°)
OKLaboklab(60.17% 0.166 -0.1733)
OKLCHoklch(60.17% 0.24 313.8)
XYZxyz(33.9186, 18.6239, 73.7448)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240E2 #70E240
analogous
#6140E2 #B240E2 #E240C1
triadic
#B240E2 #E2B240 #40E2B2
tetradic
#B240E2 #E26140 #70E240 #40C1E2
square
#B240E2 #E26140 #70E240 #40C1E2
split-complementary
#B240E2 #C1E240 #40E261
monochromatic
#6D1692 #951EC7 #B240E2 #C775EA #DDAAF2

Accessibility & contrast

On white

4.44
#B240E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B240E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240E2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240E2#FFFFFF#000000##000000
##B240E21.004.444.724.72
#FFFFFF4.441.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#347ADE
Tritanopia (blue-blind)
#AD638E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b240e2;
/* rgb */ color: rgb(178, 64, 226);
/* oklch */ color: oklch(60.2% 0.240 313.8);
Tailwind
colors: {
  custom: {
    50: '#ce7fec',
    500: '#b240e2',
    950: '#000000',
  },
}
SCSS
$custom: #b240e2;
$custom-light: #ce7fec;
$custom-dark: #000000;
JSON
{
  "hex": "#b240e2",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 282.222,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60171,
    "c": 0.23999,
    "h": 313.8
  },
  "luminance": 0.18623
}

Semantic roles & 50–950 ramp

primary
#B240E2
secondary
#B1E09E
accent
#F0386E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B240E2

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

Preview Lab → · Contrast checker → · Palette generator →

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