#9742CA#9742CA

#9742CA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.206 H 310.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9742CA
RGBrgb(151, 66, 202)
HSLhsl(278, 56%, 53%)
HSVhsv(278, 67%, 79%)
CMYKcmyk(25.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(45.28, 57.81, -55.89)
CIE-LCHlch(45.28, 80.41, 315.96°)
OKLaboklab(55.36% 0.1325 -0.158)
OKLCHoklch(55.36% 0.206 310)
XYZxyz(25.3693, 14.7405, 57.3744)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742CA #75CA42
analogous
#5342CA #9742CA #CA42B9
triadic
#9742CA #CA9742 #42CA97
tetradic
#9742CA #CA5342 #75CA42 #42B9CA
square
#9742CA #CA5342 #75CA42 #42B9CA
split-complementary
#9742CA #B9CA42 #42CA53
monochromatic
#532072 #762DA2 #9742CA #B172D7 #CCA2E5

Accessibility & contrast

On white

5.32
#9742CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9742CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742CA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742CA#FFFFFF#000000##FFFFFF
##9742CA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#2D6CC7
Tritanopia (blue-blind)
#905F81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9742ca;
/* rgb */ color: rgb(151, 66, 202);
/* oklch */ color: oklch(55.4% 0.206 310.0);
Tailwind
colors: {
  custom: {
    50: '#ba7cdb',
    500: '#9742ca',
    950: '#000000',
  },
}
SCSS
$custom: #9742ca;
$custom-light: #ba7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ca",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 277.5,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55359,
    "c": 0.20621,
    "h": 310
  },
  "luminance": 0.1474
}

Semantic roles & 50–950 ramp

primary
#9742CA
secondary
#ADD196
accent
#DF4881
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742CA

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

Preview Lab → · Contrast checker → · Palette generator →

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