#9B40E3#9B40E3

#9B40E3 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.4% C 0.234 H 305.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9B40E3
RGBrgb(155, 64, 227)
HSLhsl(273, 74%, 57%)
HSVhsv(273, 72%, 89%)
CMYKcmyk(31.7%, 71.8%, 0%, 11%)
CIE-LABlab(47.21, 64.96, -67.05)
CIE-LCHlch(47.21, 93.36, 314.10°)
OKLaboklab(57.39% 0.1364 -0.1906)
OKLCHoklch(57.39% 0.234 305.6)
XYZxyz(29.2130, 16.1816, 74.2425)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40E3 #88E340
analogous
#4A40E3 #9B40E3 #E340D9
triadic
#9B40E3 #E39B40 #40E39B
tetradic
#9B40E3 #E34A40 #88E340 #40D9E3
square
#9B40E3 #E34A40 #88E340 #40D9E3
split-complementary
#9B40E3 #D9E340 #40E34A
monochromatic
#5C1693 #7D1DC8 #9B40E3 #B775EB #D3ABF3

Accessibility & contrast

On white

4.96
#9B40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9B40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40E3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40E3#FFFFFF#000000##FFFFFF
##9B40E31.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE8
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#8E678E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9b40e3;
/* rgb */ color: rgb(155, 64, 227);
/* oklch */ color: oklch(57.4% 0.234 305.6);
Tailwind
colors: {
  custom: {
    50: '#be7ded',
    500: '#9b40e3',
    950: '#000000',
  },
}
SCSS
$custom: #9b40e3;
$custom-light: #be7ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40e3",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 273.497,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57393,
    "c": 0.23442,
    "h": 305.6
  },
  "luminance": 0.16181
}

Semantic roles & 50–950 ramp

primary
#9B40E3
secondary
#BCE19E
accent
#F13789
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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