#9742C5#9742C5

#9742C5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.201 H 311.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9742C5
RGBrgb(151, 66, 197)
HSLhsl(279, 53%, 52%)
HSVhsv(279, 66%, 77%)
CMYKcmyk(23.4%, 66.5%, 0%, 22.7%)
CIE-LABlab(44.95, 56.72, -53.52)
CIE-LCHlch(44.95, 77.98, 316.66°)
OKLaboklab(55.02% 0.1329 -0.151)
OKLCHoklch(55.02% 0.201 311.4)
XYZxyz(24.7869, 14.5076, 54.3070)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742C5 #70C542
analogous
#5642C5 #9742C5 #C542B2
triadic
#9742C5 #C59742 #42C597
tetradic
#9742C5 #C55642 #70C542 #42B2C5
square
#9742C5 #C55642 #70C542 #42B2C5
split-complementary
#9742C5 #B2C542 #42C556
monochromatic
#51216C #752F9A #9742C5 #B171D3 #CBA0E2

Accessibility & contrast

On white

5.38
#9742C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9742C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742C5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742C5#FFFFFF#000000##FFFFFF
##9742C51.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)
#0066C9
Deuteranopia (green-blind)
#336CC2
Tritanopia (blue-blind)
#915D7E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9742c5;
/* rgb */ color: rgb(151, 66, 197);
/* oklch */ color: oklch(55.0% 0.201 311.4);
Tailwind
colors: {
  custom: {
    50: '#b97cd7',
    500: '#9742c5',
    950: '#000000',
  },
}
SCSS
$custom: #9742c5;
$custom-light: #b97cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9742c5",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 278.931,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55023,
    "c": 0.20119,
    "h": 311.4
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#9742C5
secondary
#A9CE95
accent
#DC4B7E
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9742C5

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

Preview Lab → · Contrast checker → · Palette generator →

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