#B240E6#B240E6

#B240E6 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.4% C 0.244 H 312.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B240E6
RGBrgb(178, 64, 230)
HSLhsl(281, 77%, 58%)
HSVhsv(281, 72%, 90%)
CMYKcmyk(22.6%, 72.2%, 0%, 9.8%)
CIE-LABlab(50.51, 69.91, -63.26)
CIE-LCHlch(50.51, 94.29, 317.86°)
OKLaboklab(60.44% 0.1655 -0.1787)
OKLCHoklch(60.44% 0.244 312.8)
XYZxyz(34.4739, 18.8460, 76.6692)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240E6 #74E640
analogous
#5F40E6 #B240E6 #E640C7
triadic
#B240E6 #E6B240 #40E6B2
tetradic
#B240E6 #E65F40 #74E640 #40C7E6
square
#B240E6 #E65F40 #74E640 #40C7E6
split-complementary
#B240E6 #C7E640 #40E65F
monochromatic
#6E1498 #961BCE #B240E6 #C876ED #DEACF4

Accessibility & contrast

On white

4.40
#B240E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#B240E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240E6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240E6#FFFFFF#000000##000000
##B240E61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#2E7BE2
Tritanopia (blue-blind)
#AC6590
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b240e6;
/* rgb */ color: rgb(178, 64, 230);
/* oklch */ color: oklch(60.4% 0.244 312.8);
Tailwind
colors: {
  custom: {
    50: '#ce7fef',
    500: '#b240e6',
    950: '#000000',
  },
}
SCSS
$custom: #b240e6;
$custom-light: #ce7fef;
$custom-dark: #000000;
JSON
{
  "hex": "#b240e6",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 281.205,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.24357,
    "h": 312.8
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#B240E6
secondary
#B4E29F
accent
#F33470
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B240E6

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

Preview Lab → · Contrast checker → · Palette generator →

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