#9742CD#9742CD

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

Color values

HEX#9742CD
RGBrgb(151, 66, 205)
HSLhsl(277, 58%, 53%)
HSVhsv(277, 68%, 80%)
CMYKcmyk(26.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(45.47, 58.46, -57.30)
CIE-LCHlch(45.47, 81.86, 315.57°)
OKLaboklab(55.56% 0.1322 -0.1621)
OKLCHoklch(55.56% 0.209 309.2)
XYZxyz(25.7280, 14.8840, 59.2633)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742CD #78CD42
analogous
#5142CD #9742CD #CD42BD
triadic
#9742CD #CD9742 #42CD97
tetradic
#9742CD #CD5142 #78CD42 #42BDCD
square
#9742CD #CD5142 #78CD42 #42BDCD
split-complementary
#9742CD #BDCD42 #42CD51
monochromatic
#541F76 #772CA6 #9742CD #B272DA #CCA3E7

Accessibility & contrast

On white

5.28
#9742CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9742CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742CD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742CD#FFFFFF#000000##FFFFFF
##9742CD1.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)
#0068D1
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#8F6082
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9742cd;
/* rgb */ color: rgb(151, 66, 205);
/* oklch */ color: oklch(55.6% 0.209 309.2);
Tailwind
colors: {
  custom: {
    50: '#ba7ddd',
    500: '#9742cd',
    950: '#000000',
  },
}
SCSS
$custom: #9742cd;
$custom-light: #ba7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9742cd",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 276.691,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55564,
    "c": 0.20921,
    "h": 309.2
  },
  "luminance": 0.14884
}

Semantic roles & 50–950 ramp

primary
#9742CD
secondary
#AFD397
accent
#E14683
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742CD

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

Preview Lab → · Contrast checker → · Palette generator →

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