#742FB4#742FB4

#742FB4 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.198 H 303.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#742FB4
RGBrgb(116, 47, 180)
HSLhsl(271, 59%, 45%)
HSVhsv(271, 74%, 71%)
CMYKcmyk(35.6%, 73.9%, 0%, 29.4%)
CIE-LABlab(36.06, 54.26, -58.15)
CIE-LCHlch(36.06, 79.54, 313.02°)
OKLaboklab(47.32% 0.108 -0.1657)
OKLCHoklch(47.32% 0.198 303.1)
XYZxyz(16.4553, 9.0413, 44.0494)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742FB4 #6FB42F
analogous
#322FB4 #742FB4 #B42FB2
triadic
#742FB4 #B4742F #2FB474
tetradic
#742FB4 #B4322F #6FB42F #2FB2B4
square
#742FB4 #B4322F #6FB42F #2FB2B4
split-complementary
#742FB4 #B2B42F #2FB432
monochromatic
#351653 #552283 #742FB4 #934FD1 #B080DE

Accessibility & contrast

On white

7.48
#742FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#742FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742FB4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742FB4#FFFFFF#000000##FFFFFF
##742FB41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#67506F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #742fb4;
/* rgb */ color: rgb(116, 47, 180);
/* oklch */ color: oklch(47.3% 0.198 303.1);
Tailwind
colors: {
  custom: {
    50: '#a26ecb',
    500: '#742fb4',
    950: '#000000',
  },
}
SCSS
$custom: #742fb4;
$custom-light: #a26ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#742fb4",
  "rgb": {
    "r": 116,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 271.128,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47315,
    "c": 0.19778,
    "h": 303.1
  },
  "luminance": 0.09041
}

Semantic roles & 50–950 ramp

primary
#742FB4
secondary
#9EC778
accent
#E24691
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #742FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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