#B040CB#B040CB

#B040CB is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.219 H 319.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B040CB
RGBrgb(176, 64, 203)
HSLhsl(288, 57%, 52%)
HSVhsv(288, 68%, 80%)
CMYKcmyk(13.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.52, 64.25, -51.07)
CIE-LCHlch(48.52, 82.08, 321.52°)
OKLaboklab(58.43% 0.1655 -0.143)
OKLCHoklch(58.43% 0.219 319.2)
XYZxyz(30.5160, 17.2101, 58.2028)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040CB #5BCB40
analogous
#6A40CB #B040CB #CB40A1
triadic
#B040CB #CBB040 #40CBB0
tetradic
#B040CB #CB6A40 #5BCB40 #40A1CB
square
#B040CB #CB6A40 #5BCB40 #40A1CB
split-complementary
#B040CB #A1CB40 #40CB6A
monochromatic
#621F72 #8B2CA2 #B040CB #C470D8 #D8A0E5

Accessibility & contrast

On white

4.73
#B040CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B040CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040CB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040CB#FFFFFF#000000##FFFFFF
##B040CB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b040cb;
/* rgb */ color: rgb(176, 64, 203);
/* oklch */ color: oklch(58.4% 0.219 319.2);
Tailwind
colors: {
  custom: {
    50: '#cb7edb',
    500: '#b040cb',
    950: '#000000',
  },
}
SCSS
$custom: #b040cb;
$custom-light: #cb7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b040cb",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 288.345,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58427,
    "c": 0.21878,
    "h": 319.2
  },
  "luminance": 0.17209
}

Semantic roles & 50–950 ramp

primary
#B040CB
secondary
#A1D295
accent
#E04765
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B040CB

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

Preview Lab → · Contrast checker → · Palette generator →

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