#B240CA#B240CA

#B240CA is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.219 H 320.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B240CA
RGBrgb(178, 64, 202)
HSLhsl(290, 57%, 52%)
HSVhsv(290, 68%, 79%)
CMYKcmyk(11.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(48.76, 64.50, -50.10)
CIE-LCHlch(48.76, 81.67, 322.16°)
OKLaboklab(58.64% 0.1679 -0.1402)
OKLCHoklch(58.64% 0.219 320.2)
XYZxyz(30.8529, 17.3976, 57.5986)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CA #58CA40
analogous
#6D40CA #B240CA #CA409D
triadic
#B240CA #CAB240 #40CAB2
tetradic
#B240CA #CA6D40 #58CA40 #409DCA
square
#B240CA #CA6D40 #58CA40 #409DCA
split-complementary
#B240CA #9DCA40 #40CA6D
monochromatic
#621F70 #8C2CA0 #B240CA #C570D7 #D9A0E5

Accessibility & contrast

On white

4.69
#B240CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B240CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CA#FFFFFF#000000##FFFFFF
##B240CA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036CCE
Deuteranopia (green-blind)
#4C78C7
Tritanopia (blue-blind)
#B35980
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240ca;
/* rgb */ color: rgb(178, 64, 202);
/* oklch */ color: oklch(58.6% 0.219 320.2);
Tailwind
colors: {
  custom: {
    50: '#cd7edb',
    500: '#b240ca',
    950: '#000000',
  },
}
SCSS
$custom: #b240ca;
$custom-light: #cd7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ca",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 289.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58635,
    "c": 0.21874,
    "h": 320.2
  },
  "luminance": 0.17396
}

Semantic roles & 50–950 ramp

primary
#B240CA
secondary
#9FD195
accent
#E04862
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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