#9740D4#9740D4

#9740D4 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.219 H 307.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9740D4
RGBrgb(151, 64, 212)
HSLhsl(275, 63%, 54%)
HSVhsv(275, 70%, 83%)
CMYKcmyk(28.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(45.63, 60.88, -61.07)
CIE-LCHlch(45.63, 86.24, 314.91°)
OKLaboklab(55.83% 0.1335 -0.1732)
OKLCHoklch(55.83% 0.219 307.6)
XYZxyz(26.4771, 14.9999, 63.7750)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D4 #7DD440
analogous
#4D40D4 #9740D4 #D440C7
triadic
#9740D4 #D49740 #40D497
tetradic
#9740D4 #D44D40 #7DD440 #40C7D4
square
#9740D4 #D44D40 #7DD440 #40C7D4
split-complementary
#9740D4 #C7D440 #40D44D
monochromatic
#551C7D #7727AF #9740D4 #B272DF #CDA4EA

Accessibility & contrast

On white

5.25
#9740D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9740D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D4#FFFFFF#000000##FFFFFF
##9740D41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#156DD1
Tritanopia (blue-blind)
#8D6186
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d4;
/* rgb */ color: rgb(151, 64, 212);
/* oklch */ color: oklch(55.8% 0.219 307.6);
Tailwind
colors: {
  custom: {
    50: '#ba7ce2',
    500: '#9740d4',
    950: '#000000',
  },
}
SCSS
$custom: #9740d4;
$custom-light: #ba7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d4",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 275.27,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55828,
    "c": 0.21866,
    "h": 307.6
  },
  "luminance": 0.15
}

Semantic roles & 50–950 ramp

primary
#9740D4
secondary
#B2D798
accent
#E64285
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9740D4

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

Preview Lab → · Contrast checker → · Palette generator →

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