#742CA7#742CA7

#742CA7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.188 H 307.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#742CA7
RGBrgb(116, 44, 167)
HSLhsl(275, 58%, 41%)
HSVhsv(275, 74%, 65%)
CMYKcmyk(30.5%, 73.7%, 0%, 34.5%)
CIE-LABlab(34.61, 52.52, -52.76)
CIE-LCHlch(34.61, 74.44, 314.87°)
OKLaboklab(45.97% 0.1134 -0.1498)
OKLCHoklch(45.97% 0.188 307.1)
XYZxyz(15.0767, 8.3046, 37.3604)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742CA7 #5FA72C
analogous
#372CA7 #742CA7 #A72C9D
triadic
#742CA7 #A7742C #2CA774
tetradic
#742CA7 #A7372C #5FA72C #2C9DA7
square
#742CA7 #A7372C #5FA72C #2C9DA7
split-complementary
#742CA7 #9DA72C #2CA737
monochromatic
#311246 #521F77 #742CA7 #9443CD #AF73DA

Accessibility & contrast

On white

7.89
#742CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#742CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742CA7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742CA7#FFFFFF#000000##FFFFFF
##742CA71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#6B4967
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #742ca7;
/* rgb */ color: rgb(116, 44, 167);
/* oklch */ color: oklch(46.0% 0.188 307.1);
Tailwind
colors: {
  custom: {
    50: '#a16cc2',
    500: '#742ca7',
    950: '#000000',
  },
}
SCSS
$custom: #742ca7;
$custom-light: #a16cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#742ca7",
  "rgb": {
    "r": 116,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 275.122,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.18789,
    "h": 307.1
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#742CA7
secondary
#90C26D
accent
#E24687
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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