#B940C9#B940C9

#B940C9 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.221 H 322.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B940C9
RGBrgb(185, 64, 201)
HSLhsl(293, 56%, 52%)
HSVhsv(293, 68%, 79%)
CMYKcmyk(8%, 68.2%, 0%, 21.2%)
CIE-LABlab(49.74, 65.86, -47.90)
CIE-LCHlch(49.74, 81.44, 323.97°)
OKLaboklab(59.53% 0.176 -0.1335)
OKLCHoklch(59.53% 0.221 322.8)
XYZxyz(32.3826, 18.2000, 57.0543)
Luminance0.1820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940C9 #50C940
analogous
#7540C9 #B940C9 #C94094
triadic
#B940C9 #C9B940 #40C9B9
tetradic
#B940C9 #C97540 #50C940 #4094C9
square
#B940C9 #C97540 #50C940 #4094C9
split-complementary
#B940C9 #94C940 #40C975
monochromatic
#661F6F #922D9F #B940C9 #CA70D6 #DC9FE4

Accessibility & contrast

On white

4.53
#B940C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B940C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940C9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940C9#FFFFFF#000000##000000
##B940C91.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#166DCD
Deuteranopia (green-blind)
#547BC6
Tritanopia (blue-blind)
#BC5780
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b940c9;
/* rgb */ color: rgb(185, 64, 201);
/* oklch */ color: oklch(59.5% 0.221 322.8);
Tailwind
colors: {
  custom: {
    50: '#d27fda',
    500: '#b940c9',
    950: '#000000',
  },
}
SCSS
$custom: #b940c9;
$custom-light: #d27fda;
$custom-dark: #000000;
JSON
{
  "hex": "#b940c9",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 292.993,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59528,
    "c": 0.22095,
    "h": 322.8
  },
  "luminance": 0.18198
}

Semantic roles & 50–950 ramp

primary
#B940C9
secondary
#9BD094
accent
#DF495A
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B940C9

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

Preview Lab → · Contrast checker → · Palette generator →

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