#9540F9#9540F9

#9540F9 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.4% C 0.255 H 299.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9540F9
RGBrgb(149, 64, 249)
HSLhsl(268, 94%, 61%)
HSVhsv(268, 74%, 98%)
CMYKcmyk(40.2%, 74.3%, 0%, 2.4%)
CIE-LABlab(48.13, 68.95, -77.97)
CIE-LCHlch(48.13, 104.08, 311.49°)
OKLaboklab(58.4% 0.1238 -0.2229)
OKLCHoklch(58.4% 0.255 299)
XYZxyz(31.3224, 16.8955, 91.2151)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540F9 #A4F940
analogous
#4048F9 #9540F9 #F240F9
triadic
#9540F9 #F99540 #40F995
tetradic
#9540F9 #F94048 #A4F940 #40F9F2
square
#9540F9 #F94048 #A4F940 #40F9F2
split-complementary
#9540F9 #F9F240 #48F940
monochromatic
#5806B9 #7408F4 #9540F9 #B67BFB #D7B7FD

Accessibility & contrast

On white

4.80
#9540F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9540F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540F9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540F9#FFFFFF#000000##FFFFFF
##9540F91.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FE
Deuteranopia (green-blind)
#0070F5
Tritanopia (blue-blind)
#7D719A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9540f9;
/* rgb */ color: rgb(149, 64, 249);
/* oklch */ color: oklch(58.4% 0.255 299.0);
Tailwind
colors: {
  custom: {
    50: '#bc7dfc',
    500: '#9540f9',
    950: '#000000',
  },
}
SCSS
$custom: #9540f9;
$custom-light: #bc7dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9540f9",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 249
  },
  "hsl": {
    "h": 267.568,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58395,
    "c": 0.255,
    "h": 299
  },
  "luminance": 0.16896
}

Semantic roles & 50–950 ramp

primary
#9540F9
secondary
#CDEDA8
accent
#E6007C
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130A18
muted
#827C86

Preview Lab

Preview with #9540F9

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

Preview Lab → · Contrast checker → · Palette generator →

#9540F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva