#9742DF#9742DF

#9742DF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.227 H 304.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9742DF
RGBrgb(151, 66, 223)
HSLhsl(272, 71%, 57%)
HSVhsv(272, 70%, 87%)
CMYKcmyk(32.3%, 70.4%, 0%, 12.5%)
CIE-LABlab(46.72, 62.47, -65.60)
CIE-LCHlch(46.72, 90.59, 313.60°)
OKLaboklab(56.84% 0.1299 -0.1865)
OKLCHoklch(56.84% 0.227 304.9)
XYZxyz(28.0270, 15.8036, 71.3716)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742DF #8ADF42
analogous
#4942DF #9742DF #DF42D9
triadic
#9742DF #DF9742 #42DF97
tetradic
#9742DF #DF4942 #8ADF42 #42D9DF
square
#9742DF #DF4942 #8ADF42 #42D9DF
split-complementary
#9742DF #D9DF42 #42DF49
monochromatic
#58188E #7921C3 #9742DF #B476E8 #D1ABF1

Accessibility & contrast

On white

5.05
#9742DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9742DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742DF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742DF#FFFFFF#000000##FFFFFF
##9742DF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#8A678C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9742df;
/* rgb */ color: rgb(151, 66, 223);
/* oklch */ color: oklch(56.8% 0.227 304.9);
Tailwind
colors: {
  custom: {
    50: '#bb7dea',
    500: '#9742df',
    950: '#000000',
  },
}
SCSS
$custom: #9742df;
$custom-light: #bb7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9742df",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 272.484,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56841,
    "c": 0.22728,
    "h": 304.9
  },
  "luminance": 0.15803
}

Semantic roles & 50–950 ramp

primary
#9742DF
secondary
#BCDF9E
accent
#EE3A8C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742DF

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

Preview Lab → · Contrast checker → · Palette generator →

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