#B940C8#B940C8

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

Color values

HEX#B940C8
RGBrgb(185, 64, 200)
HSLhsl(293, 55%, 52%)
HSVhsv(293, 68%, 78%)
CMYKcmyk(7.5%, 68%, 0%, 21.6%)
CIE-LABlab(49.68, 65.69, -47.41)
CIE-LCHlch(49.68, 81.01, 324.18°)
OKLaboklab(59.47% 0.176 -0.1321)
OKLCHoklch(59.47% 0.22 323.1)
XYZxyz(32.2653, 18.1531, 56.4368)
Luminance0.1815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940C8 #4FC840
analogous
#7540C8 #B940C8 #C84093
triadic
#B940C8 #C8B940 #40C8B9
tetradic
#B940C8 #C87540 #4FC840 #4093C8
square
#B940C8 #C87540 #4FC840 #4093C8
split-complementary
#B940C8 #93C840 #40C875
monochromatic
#65206E #912D9D #B940C8 #CA70D6 #DC9FE3

Accessibility & contrast

On white

4.54
#B940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B940C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940C8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940C8#FFFFFF#000000##000000
##B940C81.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#557BC5
Tritanopia (blue-blind)
#BC577F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b940c8;
/* rgb */ color: rgb(185, 64, 200);
/* oklch */ color: oklch(59.5% 0.220 323.1);
Tailwind
colors: {
  custom: {
    50: '#d27fd9',
    500: '#b940c8',
    950: '#000000',
  },
}
SCSS
$custom: #b940c8;
$custom-light: #d27fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b940c8",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 293.382,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59469,
    "c": 0.2201,
    "h": 323.1
  },
  "luminance": 0.18151
}

Semantic roles & 50–950 ramp

primary
#B940C8
secondary
#9BD094
accent
#DF495A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B940C8

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

Preview Lab → · Contrast checker → · Palette generator →

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