#762AA4#762AA4

#762AA4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.188 H 309.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#762AA4
RGBrgb(118, 42, 164)
HSLhsl(277, 59%, 40%)
HSVhsv(277, 74%, 64%)
CMYKcmyk(28%, 74.4%, 0%, 35.7%)
CIE-LABlab(34.37, 53.07, -51.33)
CIE-LCHlch(34.37, 73.83, 315.96°)
OKLaboklab(45.79% 0.1186 -0.1455)
OKLCHoklch(45.79% 0.188 309.2)
XYZxyz(14.9987, 8.1881, 35.9051)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA4 #58A42A
analogous
#392AA4 #762AA4 #A42A95
triadic
#762AA4 #A4762A #2AA476
tetradic
#762AA4 #A4392A #58A42A #2A95A4
square
#762AA4 #A4392A #58A42A #2A95A4
split-complementary
#762AA4 #95A42A #2AA439
monochromatic
#301143 #531E73 #762AA4 #973ECD #B16EDA

Accessibility & contrast

On white

7.96
#762AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#762AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AA4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA4#FFFFFF#000000##FFFFFF
##762AA41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0652A1
Tritanopia (blue-blind)
#6F4765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762aa4;
/* rgb */ color: rgb(118, 42, 164);
/* oklch */ color: oklch(45.8% 0.188 309.2);
Tailwind
colors: {
  custom: {
    50: '#a26bc0',
    500: '#762aa4',
    950: '#000000',
  },
}
SCSS
$custom: #762aa4;
$custom-light: #a26bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa4",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 277.377,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45794,
    "c": 0.18776,
    "h": 309.2
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#762AA4
secondary
#8AC169
accent
#E24581
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #762AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#762AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva