#9742C4#9742C4

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

Color values

HEX#9742C4
RGBrgb(151, 66, 196)
HSLhsl(279, 52%, 51%)
HSVhsv(279, 66%, 77%)
CMYKcmyk(23%, 66.3%, 0%, 23.1%)
CIE-LABlab(44.89, 56.51, -53.04)
CIE-LCHlch(44.89, 77.50, 316.81°)
OKLaboklab(54.96% 0.133 -0.1496)
OKLCHoklch(54.96% 0.2 311.6)
XYZxyz(24.6727, 14.4619, 53.7056)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742C4 #6FC442
analogous
#5642C4 #9742C4 #C442B0
triadic
#9742C4 #C49742 #42C497
tetradic
#9742C4 #C45642 #6FC442 #42B0C4
square
#9742C4 #C45642 #6FC442 #42B0C4
split-complementary
#9742C4 #B0C442 #42C456
monochromatic
#51216A #753099 #9742C4 #B171D3 #CA9FE1

Accessibility & contrast

On white

5.40
#9742C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9742C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742C4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742C4#FFFFFF#000000##FFFFFF
##9742C41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#346CC1
Tritanopia (blue-blind)
#925C7E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9742c4;
/* rgb */ color: rgb(151, 66, 196);
/* oklch */ color: oklch(55.0% 0.200 311.6);
Tailwind
colors: {
  custom: {
    50: '#b97cd7',
    500: '#9742c4',
    950: '#000000',
  },
}
SCSS
$custom: #9742c4;
$custom-light: #b97cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9742c4",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 279.231,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54956,
    "c": 0.20019,
    "h": 311.6
  },
  "luminance": 0.14461
}

Semantic roles & 50–950 ramp

primary
#9742C4
secondary
#A8CE94
accent
#DC4C7E
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9742C4

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

Preview Lab → · Contrast checker → · Palette generator →

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