#9742E1#9742E1

#9742E1 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.0% C 0.229 H 304.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9742E1
RGBrgb(151, 66, 225)
HSLhsl(272, 73%, 57%)
HSVhsv(272, 71%, 88%)
CMYKcmyk(32.9%, 70.7%, 0%, 11.8%)
CIE-LABlab(46.86, 62.93, -66.51)
CIE-LCHlch(46.86, 91.56, 313.41°)
OKLaboklab(56.99% 0.1296 -0.1892)
OKLCHoklch(56.99% 0.229 304.4)
XYZxyz(28.2982, 15.9121, 72.8001)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742E1 #8CE142
analogous
#4742E1 #9742E1 #E142DC
triadic
#9742E1 #E19742 #42E197
tetradic
#9742E1 #E14742 #8CE142 #42DCE1
square
#9742E1 #E14742 #8CE142 #42DCE1
split-complementary
#9742E1 #DCE142 #42E147
monochromatic
#591792 #791FC6 #9742E1 #B477E9 #D1ACF2

Accessibility & contrast

On white

5.02
#9742E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9742E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742E1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742E1#FFFFFF#000000##FFFFFF
##9742E11.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006FDE
Tritanopia (blue-blind)
#89688D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9742e1;
/* rgb */ color: rgb(151, 66, 225);
/* oklch */ color: oklch(57.0% 0.229 304.4);
Tailwind
colors: {
  custom: {
    50: '#bb7deb',
    500: '#9742e1',
    950: '#000000',
  },
}
SCSS
$custom: #9742e1;
$custom-light: #bb7deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9742e1",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 272.075,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56988,
    "c": 0.22928,
    "h": 304.4
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#9742E1
secondary
#BDE09F
accent
#EF388E
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742E1

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

Preview Lab → · Contrast checker → · Palette generator →

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