#B240AC#B240AC

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

Color values

HEX#B240AC
RGBrgb(178, 64, 172)
HSLhsl(303, 47%, 47%)
HSVhsv(303, 64%, 70%)
CMYKcmyk(0%, 64%, 3.4%, 30.2%)
CIE-LABlab(47.12, 59.18, -35.21)
CIE-LCHlch(47.12, 68.87, 329.25°)
OKLaboklab(56.93% 0.1673 -0.0969)
OKLCHoklch(56.93% 0.193 329.9)
XYZxyz(27.6397, 16.1123, 40.6759)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AC #40B246
analogous
#7F40B2 #B240AC #B24073
triadic
#B240AC #ACB240 #40ACB2
tetradic
#B240AC #B27F40 #40B246 #4073B2
square
#B240AC #B27F40 #40B246 #4073B2
split-complementary
#B240AC #73B240 #40B27F
monochromatic
#582055 #853081 #B240AC #C867C3 #D894D5

Accessibility & contrast

On white

4.97
#B240AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B240AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240AC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240AC#FFFFFF#000000##FFFFFF
##B240AC1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666AF
Deuteranopia (green-blind)
#5F75A9
Tritanopia (blue-blind)
#B84D70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240ac;
/* rgb */ color: rgb(178, 64, 172);
/* oklch */ color: oklch(56.9% 0.193 329.9);
Tailwind
colors: {
  custom: {
    50: '#cc7dc5',
    500: '#b240ac',
    950: '#000000',
  },
}
SCSS
$custom: #b240ac;
$custom-light: #cc7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ac",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 303.158,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56927,
    "c": 0.19337,
    "h": 329.9
  },
  "luminance": 0.1611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B240AC

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

Preview Lab → · Contrast checker → · Palette generator →

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