#B240AB#B240AB

#B240AB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.193 H 330.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B240AB
RGBrgb(178, 64, 171)
HSLhsl(304, 47%, 47%)
HSVhsv(304, 64%, 70%)
CMYKcmyk(0%, 64%, 3.9%, 30.2%)
CIE-LABlab(47.07, 59.02, -34.70)
CIE-LCHlch(47.07, 68.46, 329.55°)
OKLaboklab(56.87% 0.1673 -0.0954)
OKLCHoklch(56.87% 0.193 330.3)
XYZxyz(27.5440, 16.0740, 40.1720)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AB #40B247
analogous
#8040B2 #B240AB #B24072
triadic
#B240AB #ABB240 #40ABB2
tetradic
#B240AB #B28040 #40B247 #4072B2
square
#B240AB #B28040 #40B247 #4072B2
split-complementary
#B240AB #72B240 #40B280
monochromatic
#582055 #853080 #B240AB #C867C2 #D894D4

Accessibility & contrast

On white

4.98
#B240AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B240AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240AB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240AB#FFFFFF#000000##FFFFFF
##B240AB1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AE
Deuteranopia (green-blind)
#5F75A8
Tritanopia (blue-blind)
#B84C70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240ab;
/* rgb */ color: rgb(178, 64, 171);
/* oklch */ color: oklch(56.9% 0.193 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc7dc4',
    500: '#b240ab',
    950: '#000000',
  },
}
SCSS
$custom: #b240ab;
$custom-light: #cc7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ab",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 303.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56874,
    "c": 0.19256,
    "h": 330.3
  },
  "luminance": 0.16072
}

Semantic roles & 50–950 ramp

primary
#B240AB
secondary
#8AC48D
accent
#D75951
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240AB

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

Preview Lab → · Contrast checker → · Palette generator →

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