#B240C8#B240C8

#B240C8 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.217 H 320.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B240C8
RGBrgb(178, 64, 200)
HSLhsl(290, 55%, 52%)
HSVhsv(290, 68%, 78%)
CMYKcmyk(11%, 68%, 0%, 21.6%)
CIE-LABlab(48.64, 64.13, -49.13)
CIE-LCHlch(48.64, 80.79, 322.54°)
OKLaboklab(58.51% 0.168 -0.1373)
OKLCHoklch(58.51% 0.217 320.7)
XYZxyz(30.6176, 17.3035, 56.3595)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C8 #56C840
analogous
#6E40C8 #B240C8 #C8409A
triadic
#B240C8 #C8B240 #40C8B2
tetradic
#B240C8 #C86E40 #56C840 #409AC8
square
#B240C8 #C86E40 #56C840 #409AC8
split-complementary
#B240C8 #9AC840 #40C86E
monochromatic
#61206E #8B2D9D #B240C8 #C570D6 #D89FE3

Accessibility & contrast

On white

4.71
#B240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C8#FFFFFF#000000##FFFFFF
##B240C81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6CCC
Deuteranopia (green-blind)
#4E78C5
Tritanopia (blue-blind)
#B3587F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b240c8;
/* rgb */ color: rgb(178, 64, 200);
/* oklch */ color: oklch(58.5% 0.217 320.7);
Tailwind
colors: {
  custom: {
    50: '#cd7ed9',
    500: '#b240c8',
    950: '#000000',
  },
}
SCSS
$custom: #b240c8;
$custom-light: #cd7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c8",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 290.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58513,
    "c": 0.21699,
    "h": 320.7
  },
  "luminance": 0.17302
}

Semantic roles & 50–950 ramp

primary
#B240C8
secondary
#9ED094
accent
#DF4961
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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