#764EF2#764EF2

#764EF2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.231 H 287.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#764EF2
RGBrgb(118, 78, 242)
HSLhsl(255, 86%, 63%)
HSVhsv(255, 68%, 95%)
CMYKcmyk(51.2%, 67.8%, 0%, 5.1%)
CIE-LABlab(46.59, 55.69, -76.70)
CIE-LCHlch(46.59, 94.78, 305.98°)
OKLaboklab(56.38% 0.0706 -0.2202)
OKLCHoklch(56.38% 0.231 287.8)
XYZxyz(26.2179, 15.7099, 85.6380)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764EF2 #CAF24E
analogous
#4E78F2 #764EF2 #C84EF2
triadic
#764EF2 #F2764E #4EF276
tetradic
#764EF2 #F24E78 #CAF24E #4EF2C8
square
#764EF2 #F24E78 #CAF24E #4EF2C8
split-complementary
#764EF2 #F2C84E #78F24E
monochromatic
#370EB8 #4A15EE #764EF2 #A287F6 #CEC0FA

Accessibility & contrast

On white

5.07
#764EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#764EF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764EF2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764EF2#FFFFFF#000000##FFFFFF
##764EF21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#47789A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #764ef2;
/* rgb */ color: rgb(118, 78, 242);
/* oklch */ color: oklch(56.4% 0.231 287.8);
Tailwind
colors: {
  custom: {
    50: '#a882f7',
    500: '#764ef2',
    950: '#000000',
  },
}
SCSS
$custom: #764ef2;
$custom-light: #a882f7;
$custom-dark: #000000;
JSON
{
  "hex": "#764ef2",
  "rgb": {
    "r": 118,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 254.634,
    "s": 86.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56381,
    "c": 0.23129,
    "h": 287.8
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#764EF2
secondary
#DDECB0
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #764EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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