#762AA5#762AA5

#762AA5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.189 H 308.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#762AA5
RGBrgb(118, 42, 165)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 75%, 65%)
CMYKcmyk(28.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(34.45, 53.30, -51.81)
CIE-LCHlch(34.45, 74.33, 315.81°)
OKLaboklab(45.87% 0.1185 -0.1469)
OKLCHoklch(45.87% 0.189 308.9)
XYZxyz(15.0893, 8.2244, 36.3826)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA5 #59A52A
analogous
#382AA5 #762AA5 #A52A96
triadic
#762AA5 #A5762A #2AA576
tetradic
#762AA5 #A5382A #59A52A #2A96A5
square
#762AA5 #A5382A #59A52A #2A96A5
split-complementary
#762AA5 #96A52A #2AA538
monochromatic
#301143 #531E74 #762AA5 #973ECE #B16FDA

Accessibility & contrast

On white

7.94
#762AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #762AA5
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA5#FFFFFF#000000##FFFFFF
##762AA51.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0252A2
Tritanopia (blue-blind)
#6F4765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762aa5;
/* rgb */ color: rgb(118, 42, 165);
/* oklch */ color: oklch(45.9% 0.189 308.9);
Tailwind
colors: {
  custom: {
    50: '#a26bc0',
    500: '#762aa5',
    950: '#000000',
  },
}
SCSS
$custom: #762aa5;
$custom-light: #a26bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa5",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 277.073,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.18875,
    "h": 308.9
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#762AA5
secondary
#8BC169
accent
#E34581
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #762AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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