#B940E7#B940E7

#B940E7 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.247 H 314.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B940E7
RGBrgb(185, 64, 231)
HSLhsl(283, 78%, 58%)
HSVhsv(283, 72%, 91%)
CMYKcmyk(19.9%, 72.3%, 0%, 9.4%)
CIE-LABlab(51.56, 71.45, -62.09)
CIE-LCHlch(51.56, 94.66, 319.01°)
OKLaboklab(61.41% 0.1739 -0.1751)
OKLCHoklch(61.41% 0.247 314.8)
XYZxyz(36.2624, 19.7519, 77.4881)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940E7 #6EE740
analogous
#6540E7 #B940E7 #E740C1
triadic
#B940E7 #E7B940 #40E7B9
tetradic
#B940E7 #E76540 #6EE740 #40C1E7
square
#B940E7 #E76540 #6EE740 #40C1E7
split-complementary
#B940E7 #C1E740 #40E765
monochromatic
#741399 #9E1AD0 #B940E7 #CD76EE #E1ADF5

Accessibility & contrast

On white

4.24
#B940E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#B940E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940E7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940E7#FFFFFF#000000##000000
##B940E71.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#387EE3
Tritanopia (blue-blind)
#B56490
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b940e7;
/* rgb */ color: rgb(185, 64, 231);
/* oklch */ color: oklch(61.4% 0.247 314.8);
Tailwind
colors: {
  custom: {
    50: '#d380ef',
    500: '#b940e7',
    950: '#000000',
  },
}
SCSS
$custom: #b940e7;
$custom-light: #d380ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b940e7",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 283.473,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61407,
    "c": 0.24676,
    "h": 314.8
  },
  "luminance": 0.19751
}

Semantic roles & 50–950 ramp

primary
#B940E7
secondary
#B2E3A0
accent
#F43469
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #B940E7

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

Preview Lab → · Contrast checker → · Palette generator →

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