#9740E2#9740E2

#9740E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.8% C 0.233 H 304.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9740E2
RGBrgb(151, 64, 226)
HSLhsl(272, 74%, 57%)
HSVhsv(272, 72%, 89%)
CMYKcmyk(33.2%, 71.7%, 0%, 11.4%)
CIE-LABlab(46.63, 64.01, -67.45)
CIE-LCHlch(46.63, 92.99, 313.50°)
OKLaboklab(56.85% 0.1313 -0.1919)
OKLCHoklch(56.85% 0.233 304.4)
XYZxyz(28.3202, 15.7372, 73.4824)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740E2 #8BE240
analogous
#4640E2 #9740E2 #E240DC
triadic
#9740E2 #E29740 #40E297
tetradic
#9740E2 #E24640 #8BE240 #40DCE2
square
#9740E2 #E24640 #8BE240 #40DCE2
split-complementary
#9740E2 #DCE240 #40E246
monochromatic
#581692 #791EC7 #9740E2 #B475EA #D1AAF2

Accessibility & contrast

On white

5.06
#9740E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9740E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740E2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740E2#FFFFFF#000000##FFFFFF
##9740E21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#89678D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9740e2;
/* rgb */ color: rgb(151, 64, 226);
/* oklch */ color: oklch(56.8% 0.233 304.4);
Tailwind
colors: {
  custom: {
    50: '#bb7cec',
    500: '#9740e2',
    950: '#000000',
  },
}
SCSS
$custom: #9740e2;
$custom-light: #bb7cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9740e2",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 272.222,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56847,
    "c": 0.23254,
    "h": 304.4
  },
  "luminance": 0.15737
}

Semantic roles & 50–950 ramp

primary
#9740E2
secondary
#BCE09E
accent
#F0388D
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9740E2

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

Preview Lab → · Contrast checker → · Palette generator →

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