#9742EF#9742EF

#9742EF is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 58.0% C 0.243 H 301.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9742EF
RGBrgb(151, 66, 239)
HSLhsl(269, 84%, 60%)
HSVhsv(269, 72%, 94%)
CMYKcmyk(36.8%, 72.4%, 0%, 6.3%)
CIE-LABlab(47.89, 66.13, -72.75)
CIE-LCHlch(47.89, 98.31, 312.27°)
OKLaboklab(58.04% 0.127 -0.2075)
OKLCHoklch(58.04% 0.243 301.5)
XYZxyz(30.2869, 16.7076, 83.2739)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742EF #9AEF42
analogous
#4243EF #9742EF #EE42EF
triadic
#9742EF #EF9742 #42EF97
tetradic
#9742EF #EF4243 #9AEF42 #42EFEE
square
#9742EF #EF4243 #9AEF42 #42EFEE
split-complementary
#9742EF #EFEE42 #43EF42
monochromatic
#5A0EA8 #7813E1 #9742EF #B67AF4 #D5B3F9

Accessibility & contrast

On white

4.84
#9742EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9742EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742EF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742EF#FFFFFF#000000##FFFFFF
##9742EF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#846D95
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9742ef;
/* rgb */ color: rgb(151, 66, 239);
/* oklch */ color: oklch(58.0% 0.243 301.5);
Tailwind
colors: {
  custom: {
    50: '#bc7ef5',
    500: '#9742ef',
    950: '#000000',
  },
}
SCSS
$custom: #9742ef;
$custom-light: #bc7ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ef",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 239
  },
  "hsl": {
    "h": 269.48,
    "s": 84.39,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58041,
    "c": 0.2433,
    "h": 301.5
  },
  "luminance": 0.16708
}

Semantic roles & 50–950 ramp

primary
#9742EF
secondary
#C7E8A5
accent
#FB2D96
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130A17
muted
#827C85

Preview Lab

Preview with #9742EF

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

Preview Lab → · Contrast checker → · Palette generator →

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