#9742C7#9742C7

#9742C7 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.203 H 310.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9742C7
RGBrgb(151, 66, 199)
HSLhsl(278, 54%, 52%)
HSVhsv(278, 67%, 78%)
CMYKcmyk(24.1%, 66.8%, 0%, 22%)
CIE-LABlab(45.08, 57.15, -54.47)
CIE-LCHlch(45.08, 78.95, 316.38°)
OKLaboklab(55.16% 0.1328 -0.1538)
OKLCHoklch(55.16% 0.203 310.8)
XYZxyz(25.0176, 14.5998, 55.5219)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742C7 #72C742
analogous
#5542C7 #9742C7 #C742B5
triadic
#9742C7 #C79742 #42C797
tetradic
#9742C7 #C75542 #72C742 #42B5C7
square
#9742C7 #C75542 #72C742 #42B5C7
split-complementary
#9742C7 #B5C742 #42C755
monochromatic
#52216E #752F9D #9742C7 #B171D5 #CBA0E3

Accessibility & contrast

On white

5.36
#9742C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9742C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742C7
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742C7#FFFFFF#000000##FFFFFF
##9742C71.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#316CC4
Tritanopia (blue-blind)
#915E7F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9742c7;
/* rgb */ color: rgb(151, 66, 199);
/* oklch */ color: oklch(55.2% 0.203 310.8);
Tailwind
colors: {
  custom: {
    50: '#ba7cd9',
    500: '#9742c7',
    950: '#000000',
  },
}
SCSS
$custom: #9742c7;
$custom-light: #ba7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9742c7",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 278.346,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55157,
    "c": 0.2032,
    "h": 310.8
  },
  "luminance": 0.14599
}

Semantic roles & 50–950 ramp

primary
#9742C7
secondary
#AAD095
accent
#DE4A7F
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742C7

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

Preview Lab → · Contrast checker → · Palette generator →

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