#B240C0#B240C0

#B240C0 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.210 H 323.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B240C0
RGBrgb(178, 64, 192)
HSLhsl(293, 50%, 50%)
HSVhsv(293, 67%, 75%)
CMYKcmyk(7.3%, 66.7%, 0%, 24.7%)
CIE-LABlab(48.18, 62.67, -45.23)
CIE-LCHlch(48.18, 77.29, 324.18°)
OKLaboklab(58.04% 0.1681 -0.1259)
OKLCHoklch(58.04% 0.21 323.2)
XYZxyz(29.7070, 16.9392, 51.5638)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C0 #4EC040
analogous
#7240C0 #B240C0 #C0408E
triadic
#B240C0 #C0B240 #40C0B2
tetradic
#B240C0 #C07240 #4EC040 #408EC0
square
#B240C0 #C07240 #4EC040 #408EC0
split-complementary
#B240C0 #8EC040 #40C072
monochromatic
#5D2164 #883092 #B240C0 #C56ECF #D79CDE

Accessibility & contrast

On white

4.79
#B240C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B240C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C0
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C0#FFFFFF#000000##FFFFFF
##B240C01.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6AC4
Deuteranopia (green-blind)
#5377BD
Tritanopia (blue-blind)
#B5557B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b240c0;
/* rgb */ color: rgb(178, 64, 192);
/* oklch */ color: oklch(58.0% 0.210 323.2);
Tailwind
colors: {
  custom: {
    50: '#cc7ed3',
    500: '#b240c0',
    950: '#000000',
  },
}
SCSS
$custom: #b240c0;
$custom-light: #cc7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c0",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 293.438,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58038,
    "c": 0.21007,
    "h": 323.2
  },
  "luminance": 0.16938
}

Semantic roles & 50–950 ramp

primary
#B240C0
secondary
#98CB91
accent
#DA4E5D
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B240C0

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

Preview Lab → · Contrast checker → · Palette generator →

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