#B240AD#B240AD

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

Color values

HEX#B240AD
RGBrgb(178, 64, 173)
HSLhsl(303, 47%, 47%)
HSVhsv(303, 64%, 70%)
CMYKcmyk(0%, 64%, 2.8%, 30.2%)
CIE-LABlab(47.17, 59.35, -35.72)
CIE-LCHlch(47.17, 69.27, 328.96°)
OKLaboklab(56.98% 0.1674 -0.0984)
OKLCHoklch(56.98% 0.194 329.6)
XYZxyz(27.7361, 16.1509, 41.1836)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AD #40B245
analogous
#7E40B2 #B240AD #B24074
triadic
#B240AD #ADB240 #40ADB2
tetradic
#B240AD #B27E40 #40B245 #4074B2
square
#B240AD #B27E40 #40B245 #4074B2
split-complementary
#B240AD #74B240 #40B27E
monochromatic
#582055 #853081 #B240AD #C867C4 #D894D5

Accessibility & contrast

On white

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

On black

4.23
#B240AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B240AD#FFFFFF#000000##FFFFFF
##B240AD1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3566B0
Deuteranopia (green-blind)
#5E75AA
Tritanopia (blue-blind)
#B84D71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240ad;
/* rgb */ color: rgb(178, 64, 173);
/* oklch */ color: oklch(57.0% 0.194 329.6);
Tailwind
colors: {
  custom: {
    50: '#cc7dc6',
    500: '#b240ad',
    950: '#000000',
  },
}
SCSS
$custom: #b240ad;
$custom-light: #cc7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ad",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 302.632,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56979,
    "c": 0.19418,
    "h": 329.6
  },
  "luminance": 0.16149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B240AD

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

Preview Lab → · Contrast checker → · Palette generator →

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