#742BA2#742BA2

#742BA2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.184 H 308.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#742BA2
RGBrgb(116, 43, 162)
HSLhsl(277, 58%, 40%)
HSVhsv(277, 73%, 64%)
CMYKcmyk(28.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(34.09, 51.81, -50.60)
CIE-LCHlch(34.09, 72.42, 315.68°)
OKLaboklab(45.49% 0.1152 -0.1435)
OKLCHoklch(45.49% 0.184 308.8)
XYZxyz(14.5866, 8.0496, 34.9607)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#742BA2 #59A22B
analogous
#392BA2 #742BA2 #A22B94
triadic
#742BA2 #A2742B #2BA274
tetradic
#742BA2 #A2392B #59A22B #2B94A2
square
#742BA2 #A2392B #59A22B #2B94A2
split-complementary
#742BA2 #94A22B #2BA239
monochromatic
#2F1141 #511E72 #742BA2 #953ECC #B06FD9

Accessibility & contrast

On white

8.05
#742BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#742BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #742BA2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##742BA2#FFFFFF#000000##FFFFFF
##742BA21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#08519F
Tritanopia (blue-blind)
#6D4664
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #742ba2;
/* rgb */ color: rgb(116, 43, 162);
/* oklch */ color: oklch(45.5% 0.184 308.8);
Tailwind
colors: {
  custom: {
    50: '#a06bbe',
    500: '#742ba2',
    950: '#000000',
  },
}
SCSS
$custom: #742ba2;
$custom-light: #a06bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#742ba2",
  "rgb": {
    "r": 116,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 276.807,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45486,
    "c": 0.18402,
    "h": 308.8
  },
  "luminance": 0.08049
}

Semantic roles & 50–950 ramp

primary
#742BA2
secondary
#8BC069
accent
#E14782
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #742BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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