#764AAA#764AAA

#764AAA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.5% C 0.150 H 302.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#764AAA
RGBrgb(118, 74, 170)
HSLhsl(268, 39%, 48%)
HSVhsv(268, 56%, 67%)
CMYKcmyk(30.6%, 56.5%, 0%, 33.3%)
CIE-LABlab(40.66, 38.46, -44.80)
CIE-LCHlch(40.66, 59.04, 310.65°)
OKLaboklab(50.46% 0.0806 -0.1265)
OKLCHoklch(50.46% 0.15 302.5)
XYZxyz(17.1740, 11.6514, 39.3666)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764AAA #7EAA4A
analogous
#4A4EAA #764AAA #A64AAA
triadic
#764AAA #AA764A #4AAA76
tetradic
#764AAA #AA4A4E #7EAA4A #4AAAA6
square
#764AAA #AA4A4E #7EAA4A #4AAAA6
split-complementary
#764AAA #AAA64A #4EAA4A
monochromatic
#3B2555 #58377F #764AAA #9570C1 #B59BD3

Accessibility & contrast

On white

6.31
#764AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#764AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764AAA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764AAA#FFFFFF#000000##FFFFFF
##764AAA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245FAD
Deuteranopia (green-blind)
#3460A8
Tritanopia (blue-blind)
#6C5D73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #764aaa;
/* rgb */ color: rgb(118, 74, 170);
/* oklch */ color: oklch(50.5% 0.150 302.5);
Tailwind
colors: {
  custom: {
    50: '#a17ec4',
    500: '#764aaa',
    950: '#000000',
  },
}
SCSS
$custom: #764aaa;
$custom-light: #a17ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#764aaa",
  "rgb": {
    "r": 118,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 267.5,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50463,
    "c": 0.15,
    "h": 302.5
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#764AAA
secondary
#AAC090
accent
#CF5999
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #764AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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