#9740CA#9740CA

#9740CA is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.209 H 310.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9740CA
RGBrgb(151, 64, 202)
HSLhsl(278, 57%, 52%)
HSVhsv(278, 68%, 79%)
CMYKcmyk(25.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.96, 58.70, -56.41)
CIE-LCHlch(44.96, 81.41, 316.14°)
OKLaboklab(55.13% 0.1347 -0.1595)
OKLCHoklch(55.13% 0.209 310.2)
XYZxyz(25.2545, 14.5109, 57.3362)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740CA #73CA40
analogous
#5240CA #9740CA #CA40B8
triadic
#9740CA #CA9740 #40CA97
tetradic
#9740CA #CA5240 #73CA40 #40B8CA
square
#9740CA #CA5240 #73CA40 #40B8CA
split-complementary
#9740CA #B8CA40 #40CA52
monochromatic
#521F70 #762CA0 #9740CA #B170D7 #CBA0E5

Accessibility & contrast

On white

5.38
#9740CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9740CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740CA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740CA#FFFFFF#000000##FFFFFF
##9740CA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#2A6CC7
Tritanopia (blue-blind)
#905D80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9740ca;
/* rgb */ color: rgb(151, 64, 202);
/* oklch */ color: oklch(55.1% 0.209 310.2);
Tailwind
colors: {
  custom: {
    50: '#ba7bdb',
    500: '#9740ca',
    950: '#000000',
  },
}
SCSS
$custom: #9740ca;
$custom-light: #ba7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9740ca",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 277.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5513,
    "c": 0.20874,
    "h": 310.2
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#9740CA
secondary
#ABD195
accent
#E04880
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740CA

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

Preview Lab → · Contrast checker → · Palette generator →

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