#9740F9#9740F9

#9740F9 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.6% C 0.255 H 299.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9740F9
RGBrgb(151, 64, 249)
HSLhsl(268, 94%, 61%)
HSVhsv(268, 74%, 98%)
CMYKcmyk(39.4%, 74.3%, 0%, 2.4%)
CIE-LABlab(48.37, 69.27, -77.57)
CIE-LCHlch(48.37, 104.00, 311.76°)
OKLaboklab(58.62% 0.1266 -0.2217)
OKLCHoklch(58.62% 0.255 299.7)
XYZxyz(31.6905, 17.0853, 91.2323)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740F9 #A2F940
analogous
#4046F9 #9740F9 #F340F9
triadic
#9740F9 #F99740 #40F997
tetradic
#9740F9 #F94046 #A2F940 #40F9F3
square
#9740F9 #F94046 #A2F940 #40F9F3
split-complementary
#9740F9 #F9F340 #46F940
monochromatic
#5A06B9 #7708F4 #9740F9 #B77BFB #D8B7FD

Accessibility & contrast

On white

4.75
#9740F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9740F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740F9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740F9#FFFFFF#000000##FFFFFF
##9740F91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FE
Deuteranopia (green-blind)
#0071F5
Tritanopia (blue-blind)
#80709A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9740f9;
/* rgb */ color: rgb(151, 64, 249);
/* oklch */ color: oklch(58.6% 0.255 299.7);
Tailwind
colors: {
  custom: {
    50: '#bd7dfc',
    500: '#9740f9',
    950: '#000000',
  },
}
SCSS
$custom: #9740f9;
$custom-light: #bd7dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9740f9",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 249
  },
  "hsl": {
    "h": 268.216,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58616,
    "c": 0.25526,
    "h": 299.7
  },
  "luminance": 0.17086
}

Semantic roles & 50–950 ramp

primary
#9740F9
secondary
#CCEDA8
accent
#E6007A
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130A18
muted
#827C86

Preview Lab

Preview with #9740F9

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

Preview Lab → · Contrast checker → · Palette generator →

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