#B240CD#B240CD

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

Color values

HEX#B240CD
RGBrgb(178, 64, 205)
HSLhsl(289, 59%, 53%)
HSVhsv(289, 69%, 80%)
CMYKcmyk(13.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(48.93, 65.06, -51.54)
CIE-LCHlch(48.93, 83.01, 321.61°)
OKLaboklab(58.82% 0.1678 -0.1444)
OKLCHoklch(58.82% 0.221 319.3)
XYZxyz(31.2115, 17.5410, 59.4875)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CD #5BCD40
analogous
#6C40CD #B240CD #CD40A1
triadic
#B240CD #CDB240 #40CDB2
tetradic
#B240CD #CD6C40 #5BCD40 #40A1CD
square
#B240CD #CD6C40 #5BCD40 #40A1CD
split-complementary
#B240CD #A1CD40 #40CD6C
monochromatic
#641E74 #8D2BA5 #B240CD #C671DA #D9A1E6

Accessibility & contrast

On white

4.66
#B240CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B240CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CD#FFFFFF#000000##FFFFFF
##B240CD1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#4A78CA
Tritanopia (blue-blind)
#B25A82
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240cd;
/* rgb */ color: rgb(178, 64, 205);
/* oklch */ color: oklch(58.8% 0.221 319.3);
Tailwind
colors: {
  custom: {
    50: '#cd7edd',
    500: '#b240cd',
    950: '#000000',
  },
}
SCSS
$custom: #b240cd;
$custom-light: #cd7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#b240cd",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 288.511,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.22136,
    "h": 319.3
  },
  "luminance": 0.1754
}

Semantic roles & 50–950 ramp

primary
#B240CD
secondary
#A2D396
accent
#E24664
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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