#B240CC#B240CC

#B240CC is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.220 H 319.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B240CC
RGBrgb(178, 64, 204)
HSLhsl(289, 58%, 53%)
HSVhsv(289, 69%, 80%)
CMYKcmyk(12.7%, 68.6%, 0%, 20%)
CIE-LABlab(48.88, 64.88, -51.06)
CIE-LCHlch(48.88, 82.56, 321.79°)
OKLaboklab(58.76% 0.1678 -0.143)
OKLCHoklch(58.76% 0.22 319.6)
XYZxyz(31.0912, 17.4929, 58.8538)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CC #5ACC40
analogous
#6C40CC #B240CC #CC40A0
triadic
#B240CC #CCB240 #40CCB2
tetradic
#B240CC #CC6C40 #5ACC40 #40A0CC
square
#B240CC #CC6C40 #5ACC40 #40A0CC
split-complementary
#B240CC #A0CC40 #40CC6C
monochromatic
#631F73 #8D2CA3 #B240CC #C570D9 #D9A1E6

Accessibility & contrast

On white

4.67
#B240CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#B240CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CC#FFFFFF#000000##FFFFFF
##B240CC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#B25A81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240cc;
/* rgb */ color: rgb(178, 64, 204);
/* oklch */ color: oklch(58.8% 0.220 319.6);
Tailwind
colors: {
  custom: {
    50: '#cd7edc',
    500: '#b240cc',
    950: '#000000',
  },
}
SCSS
$custom: #b240cc;
$custom-light: #cd7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#b240cc",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 288.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58757,
    "c": 0.22048,
    "h": 319.6
  },
  "luminance": 0.17491
}

Semantic roles & 50–950 ramp

primary
#B240CC
secondary
#A1D295
accent
#E14763
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CC

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

Preview Lab → · Contrast checker → · Palette generator →

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