#742FA2#742FA2

#742FA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.179 H 308.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#742FA2
RGBrgb(116, 47, 162)
HSLhsl(276, 55%, 41%)
HSVhsv(276, 71%, 64%)
CMYKcmyk(28.4%, 71%, 0%, 36.5%)
CIE-LABlab(34.71, 50.04, -49.59)
CIE-LCHlch(34.71, 70.45, 315.26°)
OKLaboklab(45.93% 0.1111 -0.1405)
OKLCHoklch(45.93% 0.179 308.3)
XYZxyz(14.7392, 8.3549, 35.0116)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742FA2 #5DA22F
analogous
#3A2FA2 #742FA2 #A22F96
triadic
#742FA2 #A2742F #2FA274
tetradic
#742FA2 #A23A2F #5DA22F #2F96A2
square
#742FA2 #A23A2F #5DA22F #2F96A2
split-complementary
#742FA2 #96A22F #2FA23A
monochromatic
#301343 #522173 #742FA2 #9445C9 #B075D7

Accessibility & contrast

On white

7.86
#742FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#742FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742FA2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742FA2#FFFFFF#000000##FFFFFF
##742FA21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#1252A0
Tritanopia (blue-blind)
#6D4965
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #742fa2;
/* rgb */ color: rgb(116, 47, 162);
/* oklch */ color: oklch(45.9% 0.179 308.3);
Tailwind
colors: {
  custom: {
    50: '#a06dbe',
    500: '#742fa2',
    950: '#000000',
  },
}
SCSS
$custom: #742fa2;
$custom-light: #a06dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#742fa2",
  "rgb": {
    "r": 116,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 276,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4593,
    "c": 0.17912,
    "h": 308.3
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#742FA2
secondary
#8EBF6E
accent
#DE4985
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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