#9740C8#9740C8

#9740C8 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.207 H 310.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9740C8
RGBrgb(151, 64, 200)
HSLhsl(278, 55%, 52%)
HSVhsv(278, 68%, 78%)
CMYKcmyk(24.5%, 68%, 0%, 21.6%)
CIE-LABlab(44.82, 58.27, -55.46)
CIE-LCHlch(44.82, 80.44, 316.41°)
OKLaboklab(54.99% 0.1349 -0.1567)
OKLCHoklch(54.99% 0.207 310.7)
XYZxyz(25.0192, 14.4168, 56.0971)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740C8 #71C840
analogous
#5340C8 #9740C8 #C840B5
triadic
#9740C8 #C89740 #40C897
tetradic
#9740C8 #C85340 #71C840 #40B5C8
square
#9740C8 #C85340 #71C840 #40B5C8
split-complementary
#9740C8 #B5C840 #40C853
monochromatic
#52206E #752D9D #9740C8 #B170D6 #CB9FE3

Accessibility & contrast

On white

5.41
#9740C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9740C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740C8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740C8#FFFFFF#000000##FFFFFF
##9740C81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2D6CC5
Tritanopia (blue-blind)
#915D7F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9740c8;
/* rgb */ color: rgb(151, 64, 200);
/* oklch */ color: oklch(55.0% 0.207 310.7);
Tailwind
colors: {
  custom: {
    50: '#ba7bd9',
    500: '#9740c8',
    950: '#000000',
  },
}
SCSS
$custom: #9740c8;
$custom-light: #ba7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9740c8",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 278.382,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54994,
    "c": 0.20676,
    "h": 310.7
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#9740C8
secondary
#AAD094
accent
#DF497F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740C8

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

Preview Lab → · Contrast checker → · Palette generator →

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