#762AA6#762AA6

#762AA6 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.190 H 308.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#762AA6
RGBrgb(118, 42, 166)
HSLhsl(277, 60%, 41%)
HSVhsv(277, 75%, 65%)
CMYKcmyk(28.9%, 74.7%, 0%, 34.9%)
CIE-LABlab(34.52, 53.52, -52.29)
CIE-LCHlch(34.52, 74.82, 315.67°)
OKLaboklab(45.95% 0.1183 -0.1484)
OKLCHoklch(45.95% 0.19 308.6)
XYZxyz(15.1807, 8.2609, 36.8638)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#762AA6 #5AA62A
analogous
#382AA6 #762AA6 #A62A98
triadic
#762AA6 #A6762A #2AA676
tetradic
#762AA6 #A6382A #5AA62A #2A98A6
square
#762AA6 #A6382A #5AA62A #2A98A6
split-complementary
#762AA6 #98A62A #2AA638
monochromatic
#311144 #531E75 #762AA6 #973FCE #B170DB

Accessibility & contrast

On white

7.92
#762AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#762AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #762AA6
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##762AA6#FFFFFF#000000##FFFFFF
##762AA61.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#6F4766
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #762aa6;
/* rgb */ color: rgb(118, 42, 166);
/* oklch */ color: oklch(45.9% 0.190 308.6);
Tailwind
colors: {
  custom: {
    50: '#a26bc1',
    500: '#762aa6',
    950: '#000000',
  },
}
SCSS
$custom: #762aa6;
$custom-light: #a26bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#762aa6",
  "rgb": {
    "r": 118,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 276.774,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.18973,
    "h": 308.6
  },
  "luminance": 0.08261
}

Semantic roles & 50–950 ramp

primary
#762AA6
secondary
#8CC26A
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #762AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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