#B240E1#B240E1

#B240E1 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.1% C 0.239 H 314.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B240E1
RGBrgb(178, 64, 225)
HSLhsl(282, 73%, 57%)
HSVhsv(282, 72%, 88%)
CMYKcmyk(20.9%, 71.6%, 0%, 11.8%)
CIE-LABlab(50.18, 68.92, -60.96)
CIE-LCHlch(50.18, 92.01, 318.51°)
OKLaboklab(60.1% 0.1661 -0.172)
OKLCHoklch(60.1% 0.239 314)
XYZxyz(33.7818, 18.5691, 73.0242)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240E1 #6FE140
analogous
#6140E1 #B240E1 #E140C0
triadic
#B240E1 #E1B240 #40E1B2
tetradic
#B240E1 #E16140 #6FE140 #40C0E1
square
#B240E1 #E16140 #6FE140 #40C0E1
split-complementary
#B240E1 #C0E140 #40E161
monochromatic
#6D1790 #941FC5 #B240E1 #C775E9 #DDAAF2

Accessibility & contrast

On white

4.46
#B240E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B240E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240E1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240E1#FFFFFF#000000##000000
##B240E11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E6
Deuteranopia (green-blind)
#357ADD
Tritanopia (blue-blind)
#AD638D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b240e1;
/* rgb */ color: rgb(178, 64, 225);
/* oklch */ color: oklch(60.1% 0.239 314.0);
Tailwind
colors: {
  custom: {
    50: '#ce7feb',
    500: '#b240e1',
    950: '#000000',
  },
}
SCSS
$custom: #b240e1;
$custom-light: #ce7feb;
$custom-dark: #000000;
JSON
{
  "hex": "#b240e1",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 282.484,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60104,
    "c": 0.2391,
    "h": 314
  },
  "luminance": 0.18568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B240E1

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

Preview Lab → · Contrast checker → · Palette generator →

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