#9740D2#9740D2

#9740D2 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.217 H 308.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9740D2
RGBrgb(151, 64, 210)
HSLhsl(276, 62%, 54%)
HSVhsv(276, 70%, 82%)
CMYKcmyk(28.1%, 69.5%, 0%, 17.6%)
CIE-LABlab(45.50, 60.44, -60.15)
CIE-LCHlch(45.50, 85.27, 315.14°)
OKLaboklab(55.69% 0.1338 -0.1705)
OKLCHoklch(55.69% 0.217 308.1)
XYZxyz(26.2263, 14.8996, 62.4546)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D2 #7BD240
analogous
#4E40D2 #9740D2 #D240C4
triadic
#9740D2 #D29740 #40D297
tetradic
#9740D2 #D24E40 #7BD240 #40C4D2
square
#9740D2 #D24E40 #7BD240 #40C4D2
split-complementary
#9740D2 #C4D240 #40D24E
monochromatic
#551D7B #7729AC #9740D2 #B272DE #CDA3E9

Accessibility & contrast

On white

5.28
#9740D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9740D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D2#FFFFFF#000000##FFFFFF
##9740D21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#1B6DCF
Tritanopia (blue-blind)
#8E6185
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d2;
/* rgb */ color: rgb(151, 64, 210);
/* oklch */ color: oklch(55.7% 0.217 308.1);
Tailwind
colors: {
  custom: {
    50: '#ba7ce1',
    500: '#9740d2',
    950: '#000000',
  },
}
SCSS
$custom: #9740d2;
$custom-light: #ba7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d2",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 275.753,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.21668,
    "h": 308.1
  },
  "luminance": 0.14899
}

Semantic roles & 50–950 ramp

primary
#9740D2
secondary
#B1D698
accent
#E54384
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740D2

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

Preview Lab → · Contrast checker → · Palette generator →

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