#B940E2#B940E2

#B940E2 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.242 H 316.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B940E2
RGBrgb(185, 64, 226)
HSLhsl(285, 74%, 57%)
HSVhsv(285, 72%, 89%)
CMYKcmyk(18.1%, 71.7%, 0%, 11.4%)
CIE-LABlab(51.24, 70.49, -59.77)
CIE-LCHlch(51.24, 92.42, 319.70°)
OKLaboklab(61.08% 0.1745 -0.1683)
OKLCHoklch(61.08% 0.242 316)
XYZxyz(35.5663, 19.4735, 73.8220)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940E2 #69E240
analogous
#6840E2 #B940E2 #E240BA
triadic
#B940E2 #E2B940 #40E2B9
tetradic
#B940E2 #E26840 #69E240 #40BAE2
square
#B940E2 #E26840 #69E240 #40BAE2
split-complementary
#B940E2 #BAE240 #40E268
monochromatic
#721692 #9C1EC7 #B940E2 #CC75EA #E0AAF2

Accessibility & contrast

On white

4.29
#B940E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#B940E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940E2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940E2#FFFFFF#000000##000000
##B940E21.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#3F7DDE
Tritanopia (blue-blind)
#B6628E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b940e2;
/* rgb */ color: rgb(185, 64, 226);
/* oklch */ color: oklch(61.1% 0.242 316.0);
Tailwind
colors: {
  custom: {
    50: '#d280ec',
    500: '#b940e2',
    950: '#000000',
  },
}
SCSS
$custom: #b940e2;
$custom-light: #d280ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b940e2",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 284.815,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61079,
    "c": 0.24239,
    "h": 316
  },
  "luminance": 0.19472
}

Semantic roles & 50–950 ramp

primary
#B940E2
secondary
#AFE09E
accent
#F03866
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B940E2

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

Preview Lab → · Contrast checker → · Palette generator →

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