#B240E3#B240E3

#B240E3 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.2% C 0.241 H 313.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B240E3
RGBrgb(178, 64, 227)
HSLhsl(282, 74%, 57%)
HSVhsv(282, 72%, 89%)
CMYKcmyk(21.6%, 71.8%, 0%, 11%)
CIE-LABlab(50.31, 69.32, -61.89)
CIE-LCHlch(50.31, 92.92, 318.24°)
OKLaboklab(60.24% 0.1659 -0.1747)
OKLCHoklch(60.24% 0.241 313.5)
XYZxyz(34.0562, 18.6789, 74.4696)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240E3 #71E340
analogous
#6140E3 #B240E3 #E340C3
triadic
#B240E3 #E3B240 #40E3B2
tetradic
#B240E3 #E36140 #71E340 #40C3E3
square
#B240E3 #E36140 #71E340 #40C3E3
split-complementary
#B240E3 #C3E340 #40E361
monochromatic
#6D1693 #951DC8 #B240E3 #C875EB #DDABF3

Accessibility & contrast

On white

4.43
#B240E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#B240E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240E3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240E3#FFFFFF#000000##000000
##B240E31.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E8
Deuteranopia (green-blind)
#337ADF
Tritanopia (blue-blind)
#AD648E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b240e3;
/* rgb */ color: rgb(178, 64, 227);
/* oklch */ color: oklch(60.2% 0.241 313.5);
Tailwind
colors: {
  custom: {
    50: '#ce7fed',
    500: '#b240e3',
    950: '#000000',
  },
}
SCSS
$custom: #b240e3;
$custom-light: #ce7fed;
$custom-dark: #000000;
JSON
{
  "hex": "#b240e3",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 281.963,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60238,
    "c": 0.24089,
    "h": 313.5
  },
  "luminance": 0.18678
}

Semantic roles & 50–950 ramp

primary
#B240E3
secondary
#B2E19E
accent
#F1376F
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B240E3

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

Preview Lab → · Contrast checker → · Palette generator →

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