#742CA4#742CA4

#742CA4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.185 H 308.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#742CA4
RGBrgb(116, 44, 164)
HSLhsl(276, 58%, 41%)
HSVhsv(276, 73%, 64%)
CMYKcmyk(29.3%, 73.2%, 0%, 35.7%)
CIE-LABlab(34.39, 51.83, -51.32)
CIE-LCHlch(34.39, 72.94, 315.29°)
OKLaboklab(45.75% 0.1139 -0.1456)
OKLCHoklch(45.75% 0.185 308)
XYZxyz(14.8026, 8.1949, 35.9167)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742CA4 #5CA42C
analogous
#382CA4 #742CA4 #A42C98
triadic
#742CA4 #A4742C #2CA474
tetradic
#742CA4 #A4382C #5CA42C #2C98A4
square
#742CA4 #A4382C #5CA42C #2C98A4
split-complementary
#742CA4 #98A42C #2CA438
monochromatic
#301243 #521F74 #742CA4 #9441CC #B071D9

Accessibility & contrast

On white

7.96
#742CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#742CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742CA4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742CA4#FFFFFF#000000##FFFFFF
##742CA41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0452A1
Tritanopia (blue-blind)
#6C4865
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #742ca4;
/* rgb */ color: rgb(116, 44, 164);
/* oklch */ color: oklch(45.7% 0.185 308.0);
Tailwind
colors: {
  custom: {
    50: '#a16cc0',
    500: '#742ca4',
    950: '#000000',
  },
}
SCSS
$custom: #742ca4;
$custom-light: #a16cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#742ca4",
  "rgb": {
    "r": 116,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 276,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45745,
    "c": 0.18485,
    "h": 308
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#742CA4
secondary
#8DC06B
accent
#E14784
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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