#764AA2#764AA2

#764AA2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.0% C 0.140 H 305.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#764AA2
RGBrgb(118, 74, 162)
HSLhsl(270, 37%, 46%)
HSVhsv(270, 54%, 64%)
CMYKcmyk(27.2%, 54.3%, 0%, 36.5%)
CIE-LABlab(40.18, 36.45, -40.80)
CIE-LCHlch(40.18, 54.71, 311.77°)
OKLaboklab(49.95% 0.0802 -0.1148)
OKLCHoklch(49.95% 0.14 305)
XYZxyz(16.4402, 11.3578, 35.5016)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764AA2 #76A24A
analogous
#4A4AA2 #764AA2 #A24AA2
triadic
#764AA2 #A2764A #4AA276
tetradic
#764AA2 #A24A4A #76A24A #4AA2A2
square
#764AA2 #A24A4A #76A24A #4AA2A2
split-complementary
#764AA2 #A2A24A #4AA24A
monochromatic
#39244E #573778 #764AA2 #956DBC #B397CF

Accessibility & contrast

On white

6.42
#764AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#764AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764AA2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764AA2#FFFFFF#000000##FFFFFF
##764AA21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#3B5FA0
Tritanopia (blue-blind)
#6F5A6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #764aa2;
/* rgb */ color: rgb(118, 74, 162);
/* oklch */ color: oklch(50.0% 0.140 305.0);
Tailwind
colors: {
  custom: {
    50: '#a07ebe',
    500: '#764aa2',
    950: '#000000',
  },
}
SCSS
$custom: #764aa2;
$custom-light: #a07ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#764aa2",
  "rgb": {
    "r": 118,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 270,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49954,
    "c": 0.14005,
    "h": 305
  },
  "luminance": 0.11358
}

Semantic roles & 50–950 ramp

primary
#764AA2
secondary
#A4BC8C
accent
#CD5B94
background
#FAF7FB
surface
#F3EEF7
border
#CDC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #764AA2

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

Preview Lab → · Contrast checker → · Palette generator →

#764AA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva