#B240BC#B240BC

#B240BC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.207 H 324.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B240BC
RGBrgb(178, 64, 188)
HSLhsl(295, 49%, 49%)
HSVhsv(295, 66%, 74%)
CMYKcmyk(5.3%, 66%, 0%, 26.3%)
CIE-LABlab(47.96, 61.95, -43.26)
CIE-LCHlch(47.96, 75.56, 325.07°)
OKLaboklab(57.81% 0.1681 -0.1202)
OKLCHoklch(57.81% 0.207 324.4)
XYZxyz(29.2698, 16.7644, 49.2613)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240BC #4ABC40
analogous
#7440BC #B240BC #BC4088
triadic
#B240BC #BCB240 #40BCB2
tetradic
#B240BC #BC7440 #4ABC40 #4088BC
square
#B240BC #BC7440 #4ABC40 #4088BC
split-complementary
#B240BC #88BC40 #40BC74
monochromatic
#5C2161 #87308E #B240BC #C56CCD #D79ADD

Accessibility & contrast

On white

4.82
#B240BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B240BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240BC#FFFFFF#000000##FFFFFF
##B240BC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2569C0
Deuteranopia (green-blind)
#5677B9
Tritanopia (blue-blind)
#B65379
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b240bc;
/* rgb */ color: rgb(178, 64, 188);
/* oklch */ color: oklch(57.8% 0.207 324.4);
Tailwind
colors: {
  custom: {
    50: '#cc7ed1',
    500: '#b240bc',
    950: '#000000',
  },
}
SCSS
$custom: #b240bc;
$custom-light: #cc7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b240bc",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 295.161,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57807,
    "c": 0.20666,
    "h": 324.4
  },
  "luminance": 0.16763
}

Semantic roles & 50–950 ramp

primary
#B240BC
secondary
#94C98F
accent
#D94F5A
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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