#764FF2#764FF2

#764FF2 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.230 H 287.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#764FF2
RGBrgb(118, 79, 242)
HSLhsl(254, 86%, 63%)
HSVhsv(254, 67%, 95%)
CMYKcmyk(51.2%, 67.4%, 0%, 5.1%)
CIE-LABlab(46.78, 55.17, -76.39)
CIE-LCHlch(46.78, 94.23, 305.84°)
OKLaboklab(56.52% 0.0697 -0.2193)
OKLCHoklch(56.52% 0.23 287.6)
XYZxyz(26.2895, 15.8530, 85.6619)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764FF2 #CBF24F
analogous
#4F79F2 #764FF2 #C84FF2
triadic
#764FF2 #F2764F #4FF276
tetradic
#764FF2 #F24F79 #CBF24F #4FF2C8
square
#764FF2 #F24F79 #CBF24F #4FF2C8
split-complementary
#764FF2 #F2C84F #79F24F
monochromatic
#370EB9 #4A16EE #764FF2 #A288F6 #CFC1FA

Accessibility & contrast

On white

5.04
#764FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#764FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764FF2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764FF2#FFFFFF#000000##FFFFFF
##764FF21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#47799A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #764ff2;
/* rgb */ color: rgb(118, 79, 242);
/* oklch */ color: oklch(56.5% 0.230 287.6);
Tailwind
colors: {
  custom: {
    50: '#a883f7',
    500: '#764ff2',
    950: '#000000',
  },
}
SCSS
$custom: #764ff2;
$custom-light: #a883f7;
$custom-dark: #000000;
JSON
{
  "hex": "#764ff2",
  "rgb": {
    "r": 118,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 254.356,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56517,
    "c": 0.23015,
    "h": 287.6
  },
  "luminance": 0.15854
}

Semantic roles & 50–950 ramp

primary
#764FF2
secondary
#DEECB1
accent
#E303AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #764FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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