#9740C5#9740C5

#9740C5 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.204 H 311.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9740C5
RGBrgb(151, 64, 197)
HSLhsl(279, 53%, 51%)
HSVhsv(279, 68%, 77%)
CMYKcmyk(23.4%, 67.5%, 0%, 22.7%)
CIE-LABlab(44.63, 57.62, -54.04)
CIE-LCHlch(44.63, 79.00, 316.84°)
OKLaboklab(54.79% 0.1352 -0.1525)
OKLCHoklch(54.79% 0.204 311.5)
XYZxyz(24.6721, 14.2779, 54.2687)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740C5 #6EC540
analogous
#5440C5 #9740C5 #C540B0
triadic
#9740C5 #C59740 #40C597
tetradic
#9740C5 #C55440 #6EC540 #40B0C5
square
#9740C5 #C55440 #6EC540 #40B0C5
split-complementary
#9740C5 #B0C540 #40C554
monochromatic
#51206A #742F99 #9740C5 #B16FD3 #CA9EE2

Accessibility & contrast

On white

5.45
#9740C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9740C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740C5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740C5#FFFFFF#000000##FFFFFF
##9740C51.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#316BC2
Tritanopia (blue-blind)
#915C7D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9740c5;
/* rgb */ color: rgb(151, 64, 197);
/* oklch */ color: oklch(54.8% 0.204 311.5);
Tailwind
colors: {
  custom: {
    50: '#ba7bd7',
    500: '#9740c5',
    950: '#000000',
  },
}
SCSS
$custom: #9740c5;
$custom-light: #ba7bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9740c5",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 279.248,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54791,
    "c": 0.20379,
    "h": 311.5
  },
  "luminance": 0.14277
}

Semantic roles & 50–950 ramp

primary
#9740C5
secondary
#A7CE93
accent
#DD4B7D
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9740C5

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

Preview Lab → · Contrast checker → · Palette generator →

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