#9742CB#9742CB

#9742CB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.207 H 309.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9742CB
RGBrgb(151, 66, 203)
HSLhsl(277, 57%, 53%)
HSVhsv(277, 67%, 80%)
CMYKcmyk(25.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(45.34, 58.02, -56.36)
CIE-LCHlch(45.34, 80.89, 315.83°)
OKLaboklab(55.43% 0.1324 -0.1594)
OKLCHoklch(55.43% 0.207 309.7)
XYZxyz(25.4881, 14.7880, 58.0000)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742CB #76CB42
analogous
#5242CB #9742CB #CB42BB
triadic
#9742CB #CB9742 #42CB97
tetradic
#9742CB #CB5242 #76CB42 #42BBCB
square
#9742CB #CB5242 #76CB42 #42BBCB
split-complementary
#9742CB #BBCB42 #42CB52
monochromatic
#532073 #762DA3 #9742CB #B172D8 #CCA2E5

Accessibility & contrast

On white

5.31
#9742CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9742CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742CB#FFFFFF#000000##FFFFFF
##9742CB1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#2B6DC8
Tritanopia (blue-blind)
#905F81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9742cb;
/* rgb */ color: rgb(151, 66, 203);
/* oklch */ color: oklch(55.4% 0.207 309.7);
Tailwind
colors: {
  custom: {
    50: '#ba7ddc',
    500: '#9742cb',
    950: '#000000',
  },
}
SCSS
$custom: #9742cb;
$custom-light: #ba7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9742cb",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 277.226,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55427,
    "c": 0.2072,
    "h": 309.7
  },
  "luminance": 0.14788
}

Semantic roles & 50–950 ramp

primary
#9742CB
secondary
#ADD297
accent
#E04882
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742CB

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

Preview Lab → · Contrast checker → · Palette generator →

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