#742E98#742E98

#742E98 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.170 H 311.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#742E98
RGBrgb(116, 46, 152)
HSLhsl(280, 54%, 39%)
HSVhsv(280, 70%, 60%)
CMYKcmyk(23.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(33.85, 48.23, -44.92)
CIE-LCHlch(33.85, 65.91, 317.04°)
OKLaboklab(45.09% 0.1134 -0.1268)
OKLCHoklch(45.09% 0.17 311.8)
XYZxyz(13.8459, 7.9344, 30.5018)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742E98 #52982E
analogous
#3F2E98 #742E98 #982E87
triadic
#742E98 #98742E #2E9874
tetradic
#742E98 #983F2E #52982E #2E8798
square
#742E98 #983F2E #52982E #2E8798
split-complementary
#742E98 #87982E #2E983F
monochromatic
#2C123A #502069 #742E98 #973EC5 #B06DD3

Accessibility & contrast

On white

8.12
#742E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#742E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742E98
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742E98#FFFFFF#000000##FFFFFF
##742E981.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#70445F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #742e98;
/* rgb */ color: rgb(116, 46, 152);
/* oklch */ color: oklch(45.1% 0.170 311.8);
Tailwind
colors: {
  custom: {
    50: '#a06db7',
    500: '#742e98',
    950: '#000000',
  },
}
SCSS
$custom: #742e98;
$custom-light: #a06db7;
$custom-dark: #000000;
JSON
{
  "hex": "#742e98",
  "rgb": {
    "r": 116,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 279.623,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.1701,
    "h": 311.8
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#742E98
secondary
#84BA68
accent
#DD4B7C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #742E98

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

Preview Lab → · Contrast checker → · Palette generator →

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