#B240B8#B240B8

#B240B8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.203 H 325.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B240B8
RGBrgb(178, 64, 184)
HSLhsl(297, 48%, 49%)
HSVhsv(297, 65%, 72%)
CMYKcmyk(3.3%, 65.2%, 0%, 27.8%)
CIE-LABlab(47.74, 61.24, -41.27)
CIE-LCHlch(47.74, 73.85, 326.03°)
OKLaboklab(57.58% 0.168 -0.1144)
OKLCHoklch(57.58% 0.203 325.7)
XYZxyz(28.8446, 16.5943, 47.0218)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240B8 #46B840
analogous
#7640B8 #B240B8 #B84082
triadic
#B240B8 #B8B240 #40B8B2
tetradic
#B240B8 #B87640 #46B840 #4082B8
square
#B240B8 #B87640 #46B840 #4082B8
split-complementary
#B240B8 #82B840 #40B876
monochromatic
#5A205D #86308B #B240B8 #C66ACB #D897DB

Accessibility & contrast

On white

4.86
#B240B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B240B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240B8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240B8#FFFFFF#000000##FFFFFF
##B240B81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BC
Deuteranopia (green-blind)
#5876B5
Tritanopia (blue-blind)
#B65277
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b240b8;
/* rgb */ color: rgb(178, 64, 184);
/* oklch */ color: oklch(57.6% 0.203 325.7);
Tailwind
colors: {
  custom: {
    50: '#cc7dce',
    500: '#b240b8',
    950: '#000000',
  },
}
SCSS
$custom: #b240b8;
$custom-light: #cc7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#b240b8",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 297,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5758,
    "c": 0.20328,
    "h": 325.7
  },
  "luminance": 0.16592
}

Semantic roles & 50–950 ramp

primary
#B240B8
secondary
#90C78D
accent
#D85057
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240B8

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

Preview Lab → · Contrast checker → · Palette generator →

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