#B040CC#B040CC

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

Color values

HEX#B040CC
RGBrgb(176, 64, 204)
HSLhsl(288, 58%, 53%)
HSVhsv(288, 69%, 80%)
CMYKcmyk(13.7%, 68.6%, 0%, 20%)
CIE-LABlab(48.58, 64.44, -51.55)
CIE-LCHlch(48.58, 82.52, 321.34°)
OKLaboklab(58.49% 0.1655 -0.1444)
OKLCHoklch(58.49% 0.22 318.9)
XYZxyz(30.6355, 17.2579, 58.8324)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040CC #5CCC40
analogous
#6A40CC #B040CC #CC40A2
triadic
#B040CC #CCB040 #40CCB0
tetradic
#B040CC #CC6A40 #5CCC40 #40A2CC
square
#B040CC #CC6A40 #5CCC40 #40A2CC
split-complementary
#B040CC #A2CC40 #40CC6A
monochromatic
#621F73 #8B2CA3 #B040CC #C470D9 #D8A1E6

Accessibility & contrast

On white

4.72
#B040CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B040CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040CC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040CC#FFFFFF#000000##FFFFFF
##B040CC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4977C9
Tritanopia (blue-blind)
#B05A81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b040cc;
/* rgb */ color: rgb(176, 64, 204);
/* oklch */ color: oklch(58.5% 0.220 318.9);
Tailwind
colors: {
  custom: {
    50: '#cb7edc',
    500: '#b040cc',
    950: '#000000',
  },
}
SCSS
$custom: #b040cc;
$custom-light: #cb7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#b040cc",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 288,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58489,
    "c": 0.21967,
    "h": 318.9
  },
  "luminance": 0.17257
}

Semantic roles & 50–950 ramp

primary
#B040CC
secondary
#A2D295
accent
#E14766
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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