#B240AF#B240AF

#B240AF is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.196 H 328.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B240AF
RGBrgb(178, 64, 175)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 70%)
CMYKcmyk(0%, 64%, 1.7%, 30.2%)
CIE-LABlab(47.27, 59.69, -36.74)
CIE-LCHlch(47.27, 70.09, 328.39°)
OKLaboklab(57.09% 0.1676 -0.1013)
OKLCHoklch(57.09% 0.196 328.8)
XYZxyz(27.9311, 16.2288, 42.2105)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AF #40B243
analogous
#7C40B2 #B240AF #B24076
triadic
#B240AF #AFB240 #40AFB2
tetradic
#B240AF #B27C40 #40B243 #4076B2
square
#B240AF #B27C40 #40B243 #4076B2
split-complementary
#B240AF #76B240 #40B27C
monochromatic
#582056 #853083 #B240AF #C867C6 #D894D7

Accessibility & contrast

On white

4.95
#B240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B240AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240AF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240AF#FFFFFF#000000##FFFFFF
##B240AF1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3466B2
Deuteranopia (green-blind)
#5D75AC
Tritanopia (blue-blind)
#B84E72
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240af;
/* rgb */ color: rgb(178, 64, 175);
/* oklch */ color: oklch(57.1% 0.196 328.8);
Tailwind
colors: {
  custom: {
    50: '#cc7dc7',
    500: '#b240af',
    950: '#000000',
  },
}
SCSS
$custom: #b240af;
$custom-light: #cc7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b240af",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 301.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57086,
    "c": 0.19581,
    "h": 328.8
  },
  "luminance": 0.16227
}

Semantic roles & 50–950 ramp

primary
#B240AF
secondary
#8AC48B
accent
#D75551
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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