#B240BA#B240BA

#B240BA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.205 H 325.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B240BA
RGBrgb(178, 64, 186)
HSLhsl(296, 49%, 49%)
HSVhsv(296, 66%, 73%)
CMYKcmyk(4.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(47.85, 61.60, -42.27)
CIE-LCHlch(47.85, 74.70, 325.54°)
OKLaboklab(57.69% 0.1681 -0.1173)
OKLCHoklch(57.69% 0.205 325.1)
XYZxyz(29.0557, 16.6787, 48.1338)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240BA #48BA40
analogous
#7540BA #B240BA #BA4085
triadic
#B240BA #BAB240 #40BAB2
tetradic
#B240BA #BA7540 #48BA40 #4085BA
square
#B240BA #BA7540 #48BA40 #4085BA
split-complementary
#B240BA #85BA40 #40BA75
monochromatic
#5B215F #86308C #B240BA #C66BCC #D799DC

Accessibility & contrast

On white

4.84
#B240BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B240BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240BA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240BA#FFFFFF#000000##FFFFFF
##B240BA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BE
Deuteranopia (green-blind)
#5776B7
Tritanopia (blue-blind)
#B65278
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b240ba;
/* rgb */ color: rgb(178, 64, 186);
/* oklch */ color: oklch(57.7% 0.205 325.1);
Tailwind
colors: {
  custom: {
    50: '#cc7ecf',
    500: '#b240ba',
    950: '#000000',
  },
}
SCSS
$custom: #b240ba;
$custom-light: #cc7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ba",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 296.066,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57693,
    "c": 0.20497,
    "h": 325.1
  },
  "luminance": 0.16677
}

Semantic roles & 50–950 ramp

primary
#B240BA
secondary
#92C88E
accent
#D84F58
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B240BA

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

Preview Lab → · Contrast checker → · Palette generator →

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