#8940FF#8940FF

#8940FF is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.6% C 0.260 H 294.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8940FF
RGBrgb(137, 64, 255)
HSLhsl(263, 100%, 63%)
HSVhsv(263, 75%, 100%)
CMYKcmyk(46.3%, 74.9%, 0%, 0%)
CIE-LABlab(47.24, 68.58, -82.83)
CIE-LCHlch(47.24, 107.53, 309.62°)
OKLaboklab(57.62% 0.1056 -0.2375)
OKLCHoklch(57.62% 0.26 294)
XYZxyz(30.1950, 16.2042, 96.1252)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940FF #B6FF40
analogous
#4056FF #8940FF #E940FF
triadic
#8940FF #FF8940 #40FF89
tetradic
#8940FF #FF4056 #B6FF40 #40FFE9
square
#8940FF #FF4056 #B6FF40 #40FFE9
split-complementary
#8940FF #FFE940 #56FF40
monochromatic
#4B00C5 #6303FF #8940FF #AF7DFF #D5BAFF

Accessibility & contrast

On white

4.95
#8940FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8940FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940FF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940FF#FFFFFF#000000##FFFFFF
##8940FF1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FF
Deuteranopia (green-blind)
#006DFB
Tritanopia (blue-blind)
#65749E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8940ff;
/* rgb */ color: rgb(137, 64, 255);
/* oklch */ color: oklch(57.6% 0.260 294.0);
Tailwind
colors: {
  custom: {
    50: '#b57cff',
    500: '#8940ff',
    950: '#000000',
  },
}
SCSS
$custom: #8940ff;
$custom-light: #b57cff;
$custom-dark: #000000;
JSON
{
  "hex": "#8940ff",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 262.932,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57617,
    "c": 0.25997,
    "h": 294
  },
  "luminance": 0.16205
}

Semantic roles & 50–950 ramp

primary
#8940FF
secondary
#D6F0AB
accent
#E6008E
background
#FCF7FF
surface
#F8EEFF
border
#D1C9D7
text
#120A18
muted
#817C86

Preview Lab

Preview with #8940FF

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

Preview Lab → · Contrast checker → · Palette generator →

#8940FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva