#B240CF#B240CF

#B240CF is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.223 H 318.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B240CF
RGBrgb(178, 64, 207)
HSLhsl(288, 60%, 53%)
HSVhsv(288, 69%, 81%)
CMYKcmyk(14%, 69.1%, 0%, 18.8%)
CIE-LABlab(49.05, 65.44, -52.50)
CIE-LCHlch(49.05, 83.90, 321.26°)
OKLaboklab(58.94% 0.1677 -0.1472)
OKLCHoklch(58.94% 0.223 318.7)
XYZxyz(31.4545, 17.6382, 60.7671)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240CF #5DCF40
analogous
#6A40CF #B240CF #CF40A5
triadic
#B240CF #CFB240 #40CFB2
tetradic
#B240CF #CF6A40 #5DCF40 #40A5CF
square
#B240CF #CF6A40 #5DCF40 #40A5CF
split-complementary
#B240CF #A5CF40 #40CF6A
monochromatic
#651E77 #8E2AA8 #B240CF #C671DB #D9A2E8

Accessibility & contrast

On white

4.64
#B240CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B240CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240CF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240CF#FFFFFF#000000##FFFFFF
##B240CF1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#4878CC
Tritanopia (blue-blind)
#B25B83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b240cf;
/* rgb */ color: rgb(178, 64, 207);
/* oklch */ color: oklch(58.9% 0.223 318.7);
Tailwind
colors: {
  custom: {
    50: '#cd7ede',
    500: '#b240cf',
    950: '#000000',
  },
}
SCSS
$custom: #b240cf;
$custom-light: #cd7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#b240cf",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 287.832,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58943,
    "c": 0.22312,
    "h": 318.7
  },
  "luminance": 0.17637
}

Semantic roles & 50–950 ramp

primary
#B240CF
secondary
#A3D497
accent
#E34565
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240CF

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

Preview Lab → · Contrast checker → · Palette generator →

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