#9F40DE#9F40DE

#9F40DE is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.5% C 0.231 H 308.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9F40DE
RGBrgb(159, 64, 222)
HSLhsl(276, 71%, 56%)
HSVhsv(276, 71%, 87%)
CMYKcmyk(28.4%, 71.2%, 0%, 12.9%)
CIE-LABlab(47.38, 64.62, -63.91)
CIE-LCHlch(47.38, 90.88, 315.32°)
OKLaboklab(57.51% 0.1425 -0.1812)
OKLCHoklch(57.51% 0.231 308.2)
XYZxyz(29.3136, 16.3121, 70.6974)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40DE #7FDE40
analogous
#5040DE #9F40DE #DE40CE
triadic
#9F40DE #DE9F40 #40DE9F
tetradic
#9F40DE #DE5040 #7FDE40 #40CEDE
square
#9F40DE #DE5040 #7FDE40 #40CEDE
split-complementary
#9F40DE #CEDE40 #40DE50
monochromatic
#5D188B #8021C0 #9F40DE #B974E7 #D3A8F0

Accessibility & contrast

On white

4.93
#9F40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9F40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40DE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40DE#FFFFFF#000000##FFFFFF
##9F40DE1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0F71DB
Tritanopia (blue-blind)
#95648B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f40de;
/* rgb */ color: rgb(159, 64, 222);
/* oklch */ color: oklch(57.5% 0.231 308.2);
Tailwind
colors: {
  custom: {
    50: '#c07de9',
    500: '#9f40de',
    950: '#000000',
  },
}
SCSS
$custom: #9f40de;
$custom-light: #c07de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40de",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 276.076,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57513,
    "c": 0.23056,
    "h": 308.2
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#9F40DE
secondary
#B6DE9C
accent
#ED3A82
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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