#9742D9#9742D9

#9742D9 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.221 H 306.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9742D9
RGBrgb(151, 66, 217)
HSLhsl(274, 67%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(30.4%, 69.6%, 0%, 14.9%)
CIE-LABlab(46.29, 61.12, -62.87)
CIE-LCHlch(46.29, 87.68, 314.19°)
OKLaboklab(56.41% 0.1308 -0.1785)
OKLCHoklch(56.41% 0.221 306.2)
XYZxyz(27.2324, 15.4858, 67.1866)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D9 #84D942
analogous
#4B42D9 #9742D9 #D942CF
triadic
#9742D9 #D99742 #42D997
tetradic
#9742D9 #D94B42 #84D942 #42CFD9
square
#9742D9 #D94B42 #84D942 #42CFD9
split-complementary
#9742D9 #CFD942 #42D94B
monochromatic
#571B86 #7825B9 #9742D9 #B375E3 #CFA8ED

Accessibility & contrast

On white

5.13
#9742D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9742D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D9#FFFFFF#000000##FFFFFF
##9742D91.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#086ED6
Tritanopia (blue-blind)
#8C6589
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9742d9;
/* rgb */ color: rgb(151, 66, 217);
/* oklch */ color: oklch(56.4% 0.221 306.2);
Tailwind
colors: {
  custom: {
    50: '#bb7de6',
    500: '#9742d9',
    950: '#000000',
  },
}
SCSS
$custom: #9742d9;
$custom-light: #bb7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d9",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 273.775,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56407,
    "c": 0.22127,
    "h": 306.2
  },
  "luminance": 0.15485
}

Semantic roles & 50–950 ramp

primary
#9742D9
secondary
#B7DB9C
accent
#E93E89
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742D9

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

Preview Lab → · Contrast checker → · Palette generator →

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