#9740D5#9740D5

#9740D5 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.9% C 0.220 H 307.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9740D5
RGBrgb(151, 64, 213)
HSLhsl(275, 64%, 54%)
HSVhsv(275, 70%, 84%)
CMYKcmyk(29.1%, 70%, 0%, 16.5%)
CIE-LABlab(45.70, 61.10, -61.53)
CIE-LCHlch(45.70, 86.72, 314.80°)
OKLaboklab(55.9% 0.1334 -0.1745)
OKLCHoklch(55.9% 0.22 307.4)
XYZxyz(26.6036, 15.0505, 64.4414)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D5 #7ED540
analogous
#4D40D5 #9740D5 #D540C8
triadic
#9740D5 #D59740 #40D597
tetradic
#9740D5 #D54D40 #7ED540 #40C8D5
square
#9740D5 #D54D40 #7ED540 #40C8D5
split-complementary
#9740D5 #C8D540 #40D54D
monochromatic
#561C7F #7727B1 #9740D5 #B272E0 #CEA4EB

Accessibility & contrast

On white

5.24
#9740D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9740D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D5#FFFFFF#000000##FFFFFF
##9740D51.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#126DD2
Tritanopia (blue-blind)
#8D6286
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d5;
/* rgb */ color: rgb(151, 64, 213);
/* oklch */ color: oklch(55.9% 0.220 307.4);
Tailwind
colors: {
  custom: {
    50: '#ba7ce3',
    500: '#9740d5',
    950: '#000000',
  },
}
SCSS
$custom: #9740d5;
$custom-light: #ba7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d5",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 275.034,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55899,
    "c": 0.21965,
    "h": 307.4
  },
  "luminance": 0.1505
}

Semantic roles & 50–950 ramp

primary
#9740D5
secondary
#B3D899
accent
#E74186
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9740D5

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

Preview Lab → · Contrast checker → · Palette generator →

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