#B240AE#B240AE

#B240AE is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.0% C 0.195 H 329.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B240AE
RGBrgb(178, 64, 174)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 70%)
CMYKcmyk(0%, 64%, 2.2%, 30.2%)
CIE-LABlab(47.22, 59.52, -36.23)
CIE-LCHlch(47.22, 69.68, 328.67°)
OKLaboklab(57.03% 0.1675 -0.0998)
OKLCHoklch(57.03% 0.195 329.2)
XYZxyz(27.8332, 16.1897, 41.6951)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AE #40B244
analogous
#7D40B2 #B240AE #B24075
triadic
#B240AE #AEB240 #40AEB2
tetradic
#B240AE #B27D40 #40B244 #4075B2
square
#B240AE #B27D40 #40B244 #4075B2
split-complementary
#B240AE #75B240 #40B27D
monochromatic
#582056 #853082 #B240AE #C867C5 #D894D6

Accessibility & contrast

On white

4.96
#B240AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B240AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240AE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240AE#FFFFFF#000000##FFFFFF
##B240AE1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3566B1
Deuteranopia (green-blind)
#5E75AB
Tritanopia (blue-blind)
#B84E71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240ae;
/* rgb */ color: rgb(178, 64, 174);
/* oklch */ color: oklch(57.0% 0.195 329.2);
Tailwind
colors: {
  custom: {
    50: '#cc7dc6',
    500: '#b240ae',
    950: '#000000',
  },
}
SCSS
$custom: #b240ae;
$custom-light: #cc7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ae",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 302.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57033,
    "c": 0.19499,
    "h": 329.2
  },
  "luminance": 0.16188
}

Semantic roles & 50–950 ramp

primary
#B240AE
secondary
#8AC48C
accent
#D75651
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240AE

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

Preview Lab → · Contrast checker → · Palette generator →

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