#B240AA#B240AA

#B240AA is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.192 H 330.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B240AA
RGBrgb(178, 64, 170)
HSLhsl(304, 47%, 47%)
HSVhsv(304, 64%, 70%)
CMYKcmyk(0%, 64%, 4.5%, 30.2%)
CIE-LABlab(47.02, 58.85, -34.19)
CIE-LCHlch(47.02, 68.06, 329.85°)
OKLaboklab(56.82% 0.1672 -0.094)
OKLCHoklch(56.82% 0.192 330.7)
XYZxyz(27.4491, 16.0360, 39.6720)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240AA #40B248
analogous
#8140B2 #B240AA #B24071
triadic
#B240AA #AAB240 #40AAB2
tetradic
#B240AA #B28140 #40B248 #4071B2
square
#B240AA #B28140 #40B248 #4071B2
split-complementary
#B240AA #71B240 #40B281
monochromatic
#582054 #85307F #B240AA #C867C1 #D894D4

Accessibility & contrast

On white

4.99
#B240AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B240AA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240AA#FFFFFF#000000##FFFFFF
##B240AA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3865AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#B94C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b240aa;
/* rgb */ color: rgb(178, 64, 170);
/* oklch */ color: oklch(56.8% 0.192 330.7);
Tailwind
colors: {
  custom: {
    50: '#cc7dc3',
    500: '#b240aa',
    950: '#000000',
  },
}
SCSS
$custom: #b240aa;
$custom-light: #cc7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b240aa",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 304.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56822,
    "c": 0.19176,
    "h": 330.7
  },
  "luminance": 0.16034
}

Semantic roles & 50–950 ramp

primary
#B240AA
secondary
#8AC48E
accent
#D75A51
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B240AA

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

Preview Lab → · Contrast checker → · Palette generator →

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