#9F40E8#9F40E8

#9F40E8 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.2% C 0.240 H 305.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9F40E8
RGBrgb(159, 64, 232)
HSLhsl(274, 79%, 58%)
HSVhsv(274, 72%, 91%)
CMYKcmyk(31.5%, 72.4%, 0%, 9%)
CIE-LABlab(48.09, 66.79, -68.43)
CIE-LCHlch(48.09, 95.62, 314.31°)
OKLaboklab(58.24% 0.1409 -0.1945)
OKLCHoklch(58.24% 0.24 305.9)
XYZxyz(30.6937, 16.8642, 77.9664)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40E8 #89E840
analogous
#4B40E8 #9F40E8 #E840DD
triadic
#9F40E8 #E89F40 #40E89F
tetradic
#9F40E8 #E84B40 #89E840 #40DDE8
square
#9F40E8 #E84B40 #89E840 #40DDE8
split-complementary
#9F40E8 #DDE840 #40E84B
monochromatic
#60139B #8119D2 #9F40E8 #BA77EF #D6ADF5

Accessibility & contrast

On white

4.80
#9F40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9F40E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40E8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40E8#FFFFFF#000000##FFFFFF
##9F40E81.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#0072E5
Tritanopia (blue-blind)
#926891
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f40e8;
/* rgb */ color: rgb(159, 64, 232);
/* oklch */ color: oklch(58.2% 0.240 305.9);
Tailwind
colors: {
  custom: {
    50: '#c17df0',
    500: '#9f40e8',
    950: '#000000',
  },
}
SCSS
$custom: #9f40e8;
$custom-light: #c17df0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40e8",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 273.929,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58237,
    "c": 0.24019,
    "h": 305.9
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

primary
#9F40E8
secondary
#BEE3A0
accent
#F53387
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9F40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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