#9742CF#9742CF

#9742CF is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.211 H 308.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9742CF
RGBrgb(151, 66, 207)
HSLhsl(276, 59%, 54%)
HSVhsv(276, 68%, 81%)
CMYKcmyk(27.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(45.61, 58.90, -58.24)
CIE-LCHlch(45.61, 82.83, 315.32°)
OKLaboklab(55.7% 0.132 -0.1649)
OKLCHoklch(55.7% 0.211 308.7)
XYZxyz(25.9709, 14.9812, 60.5429)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742CF #7ACF42
analogous
#5042CF #9742CF #CF42C1
triadic
#9742CF #CF9742 #42CF97
tetradic
#9742CF #CF5042 #7ACF42 #42C1CF
square
#9742CF #CF5042 #7ACF42 #42C1CF
split-complementary
#9742CF #C1CF42 #42CF50
monochromatic
#551F78 #772BA9 #9742CF #B273DB #CDA4E8

Accessibility & contrast

On white

5.25
#9742CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9742CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742CF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742CF#FFFFFF#000000##FFFFFF
##9742CF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#256DCC
Tritanopia (blue-blind)
#8F6183
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9742cf;
/* rgb */ color: rgb(151, 66, 207);
/* oklch */ color: oklch(55.7% 0.211 308.7);
Tailwind
colors: {
  custom: {
    50: '#ba7dde',
    500: '#9742cf',
    950: '#000000',
  },
}
SCSS
$custom: #9742cf;
$custom-light: #ba7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9742cf",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 276.17,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55702,
    "c": 0.21122,
    "h": 308.7
  },
  "luminance": 0.14981
}

Semantic roles & 50–950 ramp

primary
#9742CF
secondary
#B0D598
accent
#E34584
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742CF

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

Preview Lab → · Contrast checker → · Palette generator →

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