#9F40EA#9F40EA

#9F40EA is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.4% C 0.242 H 305.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9F40EA
RGBrgb(159, 64, 234)
HSLhsl(274, 80%, 58%)
HSVhsv(274, 73%, 92%)
CMYKcmyk(32.1%, 72.6%, 0%, 8.2%)
CIE-LABlab(48.23, 67.23, -69.33)
CIE-LCHlch(48.23, 96.57, 314.12°)
OKLaboklab(58.38% 0.1405 -0.1972)
OKLCHoklch(58.38% 0.242 305.5)
XYZxyz(30.9794, 16.9785, 79.4711)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40EA #8BEA40
analogous
#4A40EA #9F40EA #EA40E0
triadic
#9F40EA #EA9F40 #40EA9F
tetradic
#9F40EA #EA4A40 #8BEA40 #40E0EA
square
#9F40EA #EA4A40 #8BEA40 #40E0EA
split-complementary
#9F40EA #E0EA40 #40EA4A
monochromatic
#60119E #8217D5 #9F40EA #BB77F0 #D6AEF6

Accessibility & contrast

On white

4.78
#9F40EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9F40EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40EA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40EA#FFFFFF#000000##FFFFFF
##9F40EA1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#916992
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f40ea;
/* rgb */ color: rgb(159, 64, 234);
/* oklch */ color: oklch(58.4% 0.242 305.5);
Tailwind
colors: {
  custom: {
    50: '#c17df2',
    500: '#9f40ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f40ea;
$custom-light: #c17df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40ea",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 273.529,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58384,
    "c": 0.24211,
    "h": 305.5
  },
  "luminance": 0.16978
}

Semantic roles & 50–950 ramp

primary
#9F40EA
secondary
#BFE5A1
accent
#F73188
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9F40EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9F40EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva