#B240B4#B240B4

#B240B4 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.4% C 0.200 H 327.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B240B4
RGBrgb(178, 64, 180)
HSLhsl(299, 48%, 48%)
HSVhsv(299, 64%, 71%)
CMYKcmyk(1.1%, 64.4%, 0%, 29.4%)
CIE-LABlab(47.53, 60.55, -39.27)
CIE-LCHlch(47.53, 72.16, 327.04°)
OKLaboklab(57.36% 0.1679 -0.1086)
OKLCHoklch(57.36% 0.2 327.1)
XYZxyz(28.4312, 16.4289, 44.8448)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240B4 #42B440
analogous
#7840B4 #B240B4 #B4407C
triadic
#B240B4 #B4B240 #40B4B2
tetradic
#B240B4 #B47840 #42B440 #407CB4
square
#B240B4 #B47840 #42B440 #407CB4
split-complementary
#B240B4 #7CB440 #40B478
monochromatic
#59205A #853087 #B240B4 #C868C9 #D895D9

Accessibility & contrast

On white

4.90
#B240B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B240B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240B4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240B4#FFFFFF#000000##FFFFFF
##B240B41.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B7
Deuteranopia (green-blind)
#5B76B1
Tritanopia (blue-blind)
#B75074
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b240b4;
/* rgb */ color: rgb(178, 64, 180);
/* oklch */ color: oklch(57.4% 0.200 327.1);
Tailwind
colors: {
  custom: {
    50: '#cc7dcb',
    500: '#b240b4',
    950: '#000000',
  },
}
SCSS
$custom: #b240b4;
$custom-light: #cc7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#b240b4",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 298.966,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57358,
    "c": 0.19993,
    "h": 327.1
  },
  "luminance": 0.16427
}

Semantic roles & 50–950 ramp

primary
#B240B4
secondary
#8CC58B
accent
#D75153
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240B4

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

Preview Lab → · Contrast checker → · Palette generator →

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