#742E9D#742E9D

#742E9D is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.175 H 310.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#742E9D
RGBrgb(116, 46, 157)
HSLhsl(278, 55%, 40%)
HSVhsv(278, 71%, 62%)
CMYKcmyk(26.1%, 70.7%, 0%, 38.4%)
CIE-LABlab(34.19, 49.36, -47.40)
CIE-LCHlch(34.19, 68.43, 316.16°)
OKLaboklab(45.45% 0.1128 -0.1341)
OKLCHoklch(45.45% 0.175 310.1)
XYZxyz(14.2641, 8.1016, 32.7041)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742E9D #579D2E
analogous
#3D2E9D #742E9D #9D2E8F
triadic
#742E9D #9D742E #2E9D74
tetradic
#742E9D #9D3D2E #579D2E #2E8F9D
square
#742E9D #9D3D2E #579D2E #2E8F9D
split-complementary
#742E9D #8F9D2E #2E9D3D
monochromatic
#2E123E #51206E #742E9D #9641C7 #B070D5

Accessibility & contrast

On white

8.01
#742E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#742E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742E9D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742E9D#FFFFFF#000000##FFFFFF
##742E9D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#1B519B
Tritanopia (blue-blind)
#6E4662
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #742e9d;
/* rgb */ color: rgb(116, 46, 157);
/* oklch */ color: oklch(45.4% 0.175 310.1);
Tailwind
colors: {
  custom: {
    50: '#a06dbb',
    500: '#742e9d',
    950: '#000000',
  },
}
SCSS
$custom: #742e9d;
$custom-light: #a06dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#742e9d",
  "rgb": {
    "r": 116,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 277.838,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.17523,
    "h": 310.1
  },
  "luminance": 0.08101
}

Semantic roles & 50–950 ramp

primary
#742E9D
secondary
#89BD6A
accent
#DE4A81
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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