#764EA5#764EA5

#764EA5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.137 H 303.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#764EA5
RGBrgb(118, 78, 165)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 53%, 65%)
CMYKcmyk(28.5%, 52.7%, 0%, 35.3%)
CIE-LABlab(41.24, 34.90, -40.89)
CIE-LCHlch(41.24, 53.76, 310.48°)
OKLaboklab(50.8% 0.0749 -0.1151)
OKLCHoklch(50.8% 0.137 303.1)
XYZxyz(16.9856, 12.0170, 37.0147)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764EA5 #7DA54E
analogous
#4E52A5 #764EA5 #A14EA5
triadic
#764EA5 #A5764E #4EA576
tetradic
#764EA5 #A54E52 #7DA54E #4EA5A1
square
#764EA5 #A54E52 #7DA54E #4EA5A1
split-complementary
#764EA5 #A5A14E #52A54E
monochromatic
#3B2752 #583A7B #764EA5 #9573BD #B59DD1

Accessibility & contrast

On white

6.17
#764EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#764EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764EA5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764EA5#FFFFFF#000000##FFFFFF
##764EA51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A8
Deuteranopia (green-blind)
#3D61A3
Tritanopia (blue-blind)
#6D5E72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #764ea5;
/* rgb */ color: rgb(118, 78, 165);
/* oklch */ color: oklch(50.8% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#a081c0',
    500: '#764ea5',
    950: '#000000',
  },
}
SCSS
$custom: #764ea5;
$custom-light: #a081c0;
$custom-dark: #000000;
JSON
{
  "hex": "#764ea5",
  "rgb": {
    "r": 118,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 267.586,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.508,
    "c": 0.13732,
    "h": 303.1
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#764EA5
secondary
#A9BD91
accent
#CC5C98
background
#FAF7FB
surface
#F3EEF7
border
#CDC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #764EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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