#9742C8#9742C8

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

Color values

HEX#9742C8
RGBrgb(151, 66, 200)
HSLhsl(278, 55%, 52%)
HSVhsv(278, 67%, 78%)
CMYKcmyk(24.5%, 67%, 0%, 21.6%)
CIE-LABlab(45.15, 57.37, -54.95)
CIE-LCHlch(45.15, 79.44, 316.24°)
OKLaboklab(55.22% 0.1327 -0.1552)
OKLCHoklch(55.22% 0.204 310.5)
XYZxyz(25.1340, 14.6464, 56.1354)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742C8 #73C842
analogous
#5442C8 #9742C8 #C842B6
triadic
#9742C8 #C89742 #42C897
tetradic
#9742C8 #C85442 #73C842 #42B6C8
square
#9742C8 #C85442 #73C842 #42B6C8
split-complementary
#9742C8 #B6C842 #42C854
monochromatic
#52206F #762E9F #9742C8 #B171D6 #CBA1E4

Accessibility & contrast

On white

5.34
#9742C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9742C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742C8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742C8#FFFFFF#000000##FFFFFF
##9742C81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#2F6CC5
Tritanopia (blue-blind)
#915E80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9742c8;
/* rgb */ color: rgb(151, 66, 200);
/* oklch */ color: oklch(55.2% 0.204 310.5);
Tailwind
colors: {
  custom: {
    50: '#ba7cd9',
    500: '#9742c8',
    950: '#000000',
  },
}
SCSS
$custom: #9742c8;
$custom-light: #ba7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9742c8",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 278.06,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55224,
    "c": 0.2042,
    "h": 310.5
  },
  "luminance": 0.14646
}

Semantic roles & 50–950 ramp

primary
#9742C8
secondary
#ABD096
accent
#DE4A80
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742C8

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

Preview Lab → · Contrast checker → · Palette generator →

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