#9742DD#9742DD

#9742DD is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.225 H 305.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9742DD
RGBrgb(151, 66, 221)
HSLhsl(273, 70%, 56%)
HSVhsv(273, 70%, 87%)
CMYKcmyk(31.7%, 70.1%, 0%, 13.3%)
CIE-LABlab(46.57, 62.02, -64.70)
CIE-LCHlch(46.57, 89.62, 313.79°)
OKLaboklab(56.7% 0.1302 -0.1838)
OKLCHoklch(56.7% 0.225 305.3)
XYZxyz(27.7590, 15.6964, 69.9599)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742DD #88DD42
analogous
#4A42DD #9742DD #DD42D6
triadic
#9742DD #DD9742 #42DD97
tetradic
#9742DD #DD4A42 #88DD42 #42D6DD
square
#9742DD #DD4A42 #88DD42 #42D6DD
split-complementary
#9742DD #D6DD42 #42DD4A
monochromatic
#58198C #7822BF #9742DD #B476E6 #D0AAF0

Accessibility & contrast

On white

5.07
#9742DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9742DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742DD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742DD#FFFFFF#000000##FFFFFF
##9742DD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE2
Deuteranopia (green-blind)
#006FDA
Tritanopia (blue-blind)
#8A668B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9742dd;
/* rgb */ color: rgb(151, 66, 221);
/* oklch */ color: oklch(56.7% 0.225 305.3);
Tailwind
colors: {
  custom: {
    50: '#bb7de8',
    500: '#9742dd',
    950: '#000000',
  },
}
SCSS
$custom: #9742dd;
$custom-light: #bb7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9742dd",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 272.903,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.22528,
    "h": 305.3
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#9742DD
secondary
#BADD9D
accent
#EC3B8B
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742DD

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

Preview Lab → · Contrast checker → · Palette generator →

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