#B940FF#B940FF

#B940FF is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 63.1% C 0.268 H 309.4°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B940FF
RGBrgb(185, 64, 255)
HSLhsl(278, 100%, 63%)
HSVhsv(278, 75%, 100%)
CMYKcmyk(27.5%, 74.9%, 0%, 0%)
CIE-LABlab(53.17, 76.20, -72.91)
CIE-LCHlch(53.17, 105.46, 316.26°)
OKLaboklab(63.06% 0.1702 -0.2068)
OKLCHoklch(63.06% 0.268 309.4)
XYZxyz(39.8873, 21.2019, 96.5795)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940FF #86FF40
analogous
#5940FF #B940FF #FF40E6
triadic
#B940FF #FFB940 #40FFB9
tetradic
#B940FF #FF5940 #86FF40 #40E6FF
square
#B940FF #FF5940 #86FF40 #40E6FF
split-complementary
#B940FF #E6FF40 #40FF59
monochromatic
#7D00C5 #A303FF #B940FF #CF7DFF #E6BAFF

Accessibility & contrast

On white

4.01
#B940FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#B940FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940FF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940FF#FFFFFF#000000##000000
##B940FF1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0081FB
Tritanopia (blue-blind)
#AF6E9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b940ff;
/* rgb */ color: rgb(185, 64, 255);
/* oklch */ color: oklch(63.1% 0.268 309.4);
Tailwind
colors: {
  custom: {
    50: '#d481ff',
    500: '#b940ff',
    950: '#000000',
  },
}
SCSS
$custom: #b940ff;
$custom-light: #d481ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b940ff",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 278.01,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.63057,
    "c": 0.26785,
    "h": 309.4
  },
  "luminance": 0.21201
}

Semantic roles & 50–950 ramp

primary
#B940FF
secondary
#C4F0AB
accent
#E60054
background
#FDF8FF
surface
#FBEFFF
border
#D4CAD7
text
#150B18
muted
#837C86

Preview Lab

Preview with #B940FF

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

Preview Lab → · Contrast checker → · Palette generator →

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