#742ED7#742ED7

#742ED7 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.235 H 295.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#742ED7
RGBrgb(116, 46, 215)
HSLhsl(265, 68%, 51%)
HSVhsv(265, 79%, 84%)
CMYKcmyk(46%, 78.6%, 0%, 15.7%)
CIE-LABlab(38.85, 63.14, -74.04)
CIE-LCHlch(38.85, 97.31, 310.46°)
OKLaboklab(50.17% 0.0998 -0.2123)
OKLCHoklch(50.17% 0.235 295.2)
XYZxyz(20.4419, 10.5727, 65.2405)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742ED7 #91D72E
analogous
#2E3CD7 #742ED7 #C82ED7
triadic
#742ED7 #D7742E #2ED774
tetradic
#742ED7 #D72E3C #91D72E #2ED7C8
square
#742ED7 #D72E3C #91D72E #2ED7C8
split-complementary
#742ED7 #D7C82E #3CD72E
monochromatic
#3D1674 #5820A8 #742ED7 #9661E1 #B895EB

Accessibility & contrast

On white

6.74
#742ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#742ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #742ED7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742ED7#FFFFFF#000000##FFFFFF
##742ED71.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#575E83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #742ed7;
/* rgb */ color: rgb(116, 46, 215);
/* oklch */ color: oklch(50.2% 0.235 295.2);
Tailwind
colors: {
  custom: {
    50: '#a56fe5',
    500: '#742ed7',
    950: '#000000',
  },
}
SCSS
$custom: #742ed7;
$custom-light: #a56fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#742ed7",
  "rgb": {
    "r": 116,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 264.852,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50171,
    "c": 0.2346,
    "h": 295.2
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#742ED7
secondary
#B7D68B
accent
#EB3DA3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #742ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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