#B940CB#B940CB

#B940CB is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.223 H 322.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B940CB
RGBrgb(185, 64, 203)
HSLhsl(292, 57%, 52%)
HSVhsv(292, 68%, 80%)
CMYKcmyk(8.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(49.85, 66.22, -48.87)
CIE-LCHlch(49.85, 82.30, 323.57°)
OKLaboklab(59.65% 0.176 -0.1364)
OKLCHoklch(59.65% 0.223 322.2)
XYZxyz(32.6194, 18.2947, 58.3014)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940CB #52CB40
analogous
#7340CB #B940CB #CB4098
triadic
#B940CB #CBB940 #40CBB9
tetradic
#B940CB #CB7340 #52CB40 #4098CB
square
#B940CB #CB7340 #52CB40 #4098CB
split-complementary
#B940CB #98CB40 #40CB73
monochromatic
#671F72 #932CA2 #B940CB #CB70D8 #DCA0E5

Accessibility & contrast

On white

4.51
#B940CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#B940CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940CB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940CB#FFFFFF#000000##000000
##B940CB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#116ECF
Deuteranopia (green-blind)
#537BC8
Tritanopia (blue-blind)
#BB5881
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b940cb;
/* rgb */ color: rgb(185, 64, 203);
/* oklch */ color: oklch(59.6% 0.223 322.2);
Tailwind
colors: {
  custom: {
    50: '#d27fdb',
    500: '#b940cb',
    950: '#000000',
  },
}
SCSS
$custom: #b940cb;
$custom-light: #d27fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b940cb",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 292.23,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59646,
    "c": 0.22263,
    "h": 322.2
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

primary
#B940CB
secondary
#9DD295
accent
#E0475B
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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