#B240CB#B240CB

#B240CB is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.220 H 319.9°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B240CB
RGBrgb(178, 64, 203)
HSLhsl(289, 57%, 52%)
HSVhsv(289, 68%, 80%)
CMYKcmyk(12.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.82, 64.69, -50.58)
CIE-LCHlch(48.82, 82.12, 321.98°)
OKLaboklab(58.7% 0.1679 -0.1416)
OKLCHoklch(58.7% 0.22 319.9)
XYZxyz(30.9716, 17.4451, 58.2242)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CB #59CB40
analogous
#6D40CB #B240CB #CB409E
triadic
#B240CB #CBB240 #40CBB2
tetradic
#B240CB #CB6D40 #59CB40 #409ECB
square
#B240CB #CB6D40 #59CB40 #409ECB
split-complementary
#B240CB #9ECB40 #40CB6D
monochromatic
#631F72 #8D2CA2 #B240CB #C570D8 #D9A0E5

Accessibility & contrast

On white

4.68
#B240CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#B240CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CB#FFFFFF#000000##FFFFFF
##B240CB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#4C78C8
Tritanopia (blue-blind)
#B35981
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240cb;
/* rgb */ color: rgb(178, 64, 203);
/* oklch */ color: oklch(58.7% 0.220 319.9);
Tailwind
colors: {
  custom: {
    50: '#cd7edb',
    500: '#b240cb',
    950: '#000000',
  },
}
SCSS
$custom: #b240cb;
$custom-light: #cd7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b240cb",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 289.209,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58696,
    "c": 0.21961,
    "h": 319.9
  },
  "luminance": 0.17444
}

Semantic roles & 50–950 ramp

primary
#B240CB
secondary
#A0D295
accent
#E04763
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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