#9742CE#9742CE

#9742CE is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.210 H 308.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9742CE
RGBrgb(151, 66, 206)
HSLhsl(276, 59%, 53%)
HSVhsv(276, 68%, 81%)
CMYKcmyk(26.7%, 68%, 0%, 19.2%)
CIE-LABlab(45.54, 58.68, -57.77)
CIE-LCHlch(45.54, 82.35, 315.45°)
OKLaboklab(55.63% 0.1321 -0.1635)
OKLCHoklch(55.63% 0.21 308.9)
XYZxyz(25.8490, 14.9324, 59.9011)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742CE #79CE42
analogous
#5142CE #9742CE #CE42BF
triadic
#9742CE #CE9742 #42CE97
tetradic
#9742CE #CE5142 #79CE42 #42BFCE
square
#9742CE #CE5142 #79CE42 #42BFCE
split-complementary
#9742CE #BFCE42 #42CE51
monochromatic
#541F77 #772BA7 #9742CE #B273DB #CCA3E7

Accessibility & contrast

On white

5.27
#9742CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9742CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742CE
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742CE#FFFFFF#000000##FFFFFF
##9742CE1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#276DCB
Tritanopia (blue-blind)
#8F6083
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9742ce;
/* rgb */ color: rgb(151, 66, 206);
/* oklch */ color: oklch(55.6% 0.210 308.9);
Tailwind
colors: {
  custom: {
    50: '#ba7dde',
    500: '#9742ce',
    950: '#000000',
  },
}
SCSS
$custom: #9742ce;
$custom-light: #ba7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ce",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 276.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55633,
    "c": 0.21022,
    "h": 308.9
  },
  "luminance": 0.14932
}

Semantic roles & 50–950 ramp

primary
#9742CE
secondary
#AFD498
accent
#E24683
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742CE

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

Preview Lab → · Contrast checker → · Palette generator →

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