#9742E2#9742E2

#9742E2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.230 H 304.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9742E2
RGBrgb(151, 66, 226)
HSLhsl(272, 73%, 57%)
HSVhsv(272, 71%, 89%)
CMYKcmyk(33.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(46.93, 63.15, -66.96)
CIE-LCHlch(46.93, 92.04, 313.32°)
OKLaboklab(57.06% 0.1294 -0.1905)
OKLCHoklch(57.06% 0.23 304.2)
XYZxyz(28.4350, 15.9668, 73.5206)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742E2 #8DE242
analogous
#4742E2 #9742E2 #E242DD
triadic
#9742E2 #E29742 #42E297
tetradic
#9742E2 #E24742 #8DE242 #42DDE2
square
#9742E2 #E24742 #8DE242 #42DDE2
split-complementary
#9742E2 #DDE242 #42E247
monochromatic
#591793 #791FC8 #9742E2 #B477EA #D1ACF2

Accessibility & contrast

On white

5.01
#9742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9742E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742E2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742E2#FFFFFF#000000##FFFFFF
##9742E21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#89688E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9742e2;
/* rgb */ color: rgb(151, 66, 226);
/* oklch */ color: oklch(57.1% 0.230 304.2);
Tailwind
colors: {
  custom: {
    50: '#bb7dec',
    500: '#9742e2',
    950: '#000000',
  },
}
SCSS
$custom: #9742e2;
$custom-light: #bb7dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9742e2",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 271.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57062,
    "c": 0.23029,
    "h": 304.2
  },
  "luminance": 0.15967
}

Semantic roles & 50–950 ramp

primary
#9742E2
secondary
#BEE09F
accent
#F0388E
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9742E2

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

Preview Lab → · Contrast checker → · Palette generator →

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