#742E9E#742E9E

#742E9E is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.176 H 309.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#742E9E
RGBrgb(116, 46, 158)
HSLhsl(278, 55%, 40%)
HSVhsv(278, 71%, 62%)
CMYKcmyk(26.6%, 70.9%, 0%, 38%)
CIE-LABlab(34.26, 49.58, -47.89)
CIE-LCHlch(34.26, 68.93, 315.99°)
OKLaboklab(45.52% 0.1127 -0.1355)
OKLCHoklch(45.52% 0.176 309.7)
XYZxyz(14.3498, 8.1359, 33.1556)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742E9E #589E2E
analogous
#3C2E9E #742E9E #9E2E90
triadic
#742E9E #9E742E #2E9E74
tetradic
#742E9E #9E3C2E #589E2E #2E909E
square
#742E9E #9E3C2E #589E2E #2E909E
split-complementary
#742E9E #909E2E #2E9E3C
monochromatic
#2E123F #51206F #742E9E #9541C8 #B071D6

Accessibility & contrast

On white

7.99
#742E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#742E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742E9E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742E9E#FFFFFF#000000##FFFFFF
##742E9E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#19529C
Tritanopia (blue-blind)
#6E4763
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #742e9e;
/* rgb */ color: rgb(116, 46, 158);
/* oklch */ color: oklch(45.5% 0.176 309.7);
Tailwind
colors: {
  custom: {
    50: '#a06dbb',
    500: '#742e9e',
    950: '#000000',
  },
}
SCSS
$custom: #742e9e;
$custom-light: #a06dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#742e9e",
  "rgb": {
    "r": 116,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 277.5,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.45521,
    "c": 0.17626,
    "h": 309.7
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#742E9E
secondary
#8ABD6B
accent
#DE4A81
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742E9E

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

Preview Lab → · Contrast checker → · Palette generator →

#742E9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva