#742FB2#742FB2

#742FB2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.196 H 303.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#742FB2
RGBrgb(116, 47, 178)
HSLhsl(272, 58%, 44%)
HSVhsv(272, 74%, 70%)
CMYKcmyk(34.8%, 73.6%, 0%, 30.2%)
CIE-LABlab(35.91, 53.78, -57.22)
CIE-LCHlch(35.91, 78.53, 313.23°)
OKLaboklab(47.16% 0.1084 -0.163)
OKLCHoklch(47.16% 0.196 303.6)
XYZxyz(16.2530, 8.9604, 42.9841)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742FB2 #6DB22F
analogous
#332FB2 #742FB2 #B22FAF
triadic
#742FB2 #B2742F #2FB274
tetradic
#742FB2 #B2332F #6DB22F #2FAFB2
square
#742FB2 #B2332F #6DB22F #2FAFB2
split-complementary
#742FB2 #AFB22F #2FB233
monochromatic
#351551 #542282 #742FB2 #934ED0 #B07EDD

Accessibility & contrast

On white

7.52
#742FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#742FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742FB2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742FB2#FFFFFF#000000##FFFFFF
##742FB21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#684F6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #742fb2;
/* rgb */ color: rgb(116, 47, 178);
/* oklch */ color: oklch(47.2% 0.196 303.6);
Tailwind
colors: {
  custom: {
    50: '#a16eca',
    500: '#742fb2',
    950: '#000000',
  },
}
SCSS
$custom: #742fb2;
$custom-light: #a16eca;
$custom-dark: #000000;
JSON
{
  "hex": "#742fb2",
  "rgb": {
    "r": 116,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 271.603,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47156,
    "c": 0.19571,
    "h": 303.6
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#742FB2
secondary
#9CC677
accent
#E14690
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #742FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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