#9F40D9#9F40D9

#9F40D9 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.2% C 0.226 H 309.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9F40D9
RGBrgb(159, 64, 217)
HSLhsl(277, 67%, 55%)
HSVhsv(277, 71%, 85%)
CMYKcmyk(26.7%, 70.5%, 0%, 14.9%)
CIE-LABlab(47.04, 63.55, -61.61)
CIE-LCHlch(47.04, 88.51, 315.89°)
OKLaboklab(57.16% 0.1432 -0.1745)
OKLCHoklch(57.16% 0.226 309.4)
XYZxyz(28.6534, 16.0480, 67.2203)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40D9 #7AD940
analogous
#5340D9 #9F40D9 #D940C6
triadic
#9F40D9 #D99F40 #40D99F
tetradic
#9F40D9 #D95340 #7AD940 #40C6D9
square
#9F40D9 #D95340 #7AD940 #40C6D9
split-complementary
#9F40D9 #C6D940 #40D953
monochromatic
#5C1A84 #8024B7 #9F40D9 #B973E3 #D2A6ED

Accessibility & contrast

On white

4.99
#9F40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9F40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40D9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40D9#FFFFFF#000000##FFFFFF
##9F40D91.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#1E71D6
Tritanopia (blue-blind)
#976288
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f40d9;
/* rgb */ color: rgb(159, 64, 217);
/* oklch */ color: oklch(57.2% 0.226 309.4);
Tailwind
colors: {
  custom: {
    50: '#c07de6',
    500: '#9f40d9',
    950: '#000000',
  },
}
SCSS
$custom: #9f40d9;
$custom-light: #c07de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40d9",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 277.255,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5716,
    "c": 0.22576,
    "h": 309.4
  },
  "luminance": 0.16047
}

Semantic roles & 50–950 ramp

primary
#9F40D9
secondary
#B3DA9A
accent
#EA3E7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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