#9742D5#9742D5

#9742D5 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.217 H 307.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9742D5
RGBrgb(151, 66, 213)
HSLhsl(275, 64%, 55%)
HSVhsv(275, 69%, 84%)
CMYKcmyk(29.1%, 69%, 0%, 16.5%)
CIE-LABlab(46.02, 60.23, -61.03)
CIE-LCHlch(46.02, 85.74, 314.62°)
OKLaboklab(56.12% 0.1313 -0.1731)
OKLCHoklch(56.12% 0.217 307.2)
XYZxyz(26.7184, 15.2802, 64.4797)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D5 #80D542
analogous
#4E42D5 #9742D5 #D542C9
triadic
#9742D5 #D59742 #42D597
tetradic
#9742D5 #D54E42 #80D542 #42C9D5
square
#9742D5 #D54E42 #80D542 #42C9D5
split-complementary
#9742D5 #C9D542 #42D54E
monochromatic
#561C80 #7828B2 #9742D5 #B374E0 #CEA6EB

Accessibility & contrast

On white

5.18
#9742D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9742D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D5#FFFFFF#000000##FFFFFF
##9742D51.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#186ED2
Tritanopia (blue-blind)
#8D6387
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9742d5;
/* rgb */ color: rgb(151, 66, 213);
/* oklch */ color: oklch(56.1% 0.217 307.2);
Tailwind
colors: {
  custom: {
    50: '#ba7de3',
    500: '#9742d5',
    950: '#000000',
  },
}
SCSS
$custom: #9742d5;
$custom-light: #ba7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d5",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 274.694,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56122,
    "c": 0.21725,
    "h": 307.2
  },
  "luminance": 0.1528
}

Semantic roles & 50–950 ramp

primary
#9742D5
secondary
#B5D89A
accent
#E74187
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9742D5

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

Preview Lab → · Contrast checker → · Palette generator →

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