#764CA8#764CA8

#764CA8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.144 H 302.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#764CA8
RGBrgb(118, 76, 168)
HSLhsl(267, 38%, 48%)
HSVhsv(267, 55%, 66%)
CMYKcmyk(29.8%, 54.8%, 0%, 34.1%)
CIE-LABlab(40.97, 36.81, -43.10)
CIE-LCHlch(40.97, 56.68, 310.50°)
OKLaboklab(50.66% 0.0779 -0.1215)
OKLCHoklch(50.66% 0.144 302.6)
XYZxyz(17.1219, 11.8476, 38.4230)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764CA8 #7EA84C
analogous
#4C50A8 #764CA8 #A44CA8
triadic
#764CA8 #A8764C #4CA876
tetradic
#764CA8 #A84C50 #7EA84C #4CA8A4
square
#764CA8 #A84C50 #7EA84C #4CA8A4
split-complementary
#764CA8 #A8A44C #50A84C
monochromatic
#3B2654 #58397E #764CA8 #9572BF #B59CD2

Accessibility & contrast

On white

6.23
#764CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#764CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764CA8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764CA8#FFFFFF#000000##FFFFFF
##764CA81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AB
Deuteranopia (green-blind)
#3860A6
Tritanopia (blue-blind)
#6D5E72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #764ca8;
/* rgb */ color: rgb(118, 76, 168);
/* oklch */ color: oklch(50.7% 0.144 302.6);
Tailwind
colors: {
  custom: {
    50: '#a07fc2',
    500: '#764ca8',
    950: '#000000',
  },
}
SCSS
$custom: #764ca8;
$custom-light: #a07fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#764ca8",
  "rgb": {
    "r": 118,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 267.391,
    "s": 37.705,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.14434,
    "h": 302.6
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#764CA8
secondary
#AABF91
accent
#CE5A99
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #764CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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