#764CE2#764CE2

#764CE2 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.8% C 0.215 H 290.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#764CE2
RGBrgb(118, 76, 226)
HSLhsl(257, 72%, 59%)
HSVhsv(257, 66%, 89%)
CMYKcmyk(47.8%, 66.4%, 0%, 11.4%)
CIE-LABlab(44.96, 52.31, -70.33)
CIE-LCHlch(44.96, 87.66, 306.64°)
OKLaboklab(54.82% 0.0748 -0.2016)
OKLCHoklch(54.82% 0.215 290.4)
XYZxyz(23.7792, 14.5105, 73.4846)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764CE2 #B8E24C
analogous
#4C6DE2 #764CE2 #C14CE2
triadic
#764CE2 #E2764C #4CE276
tetradic
#764CE2 #E24C6D #B8E24C #4CE2C1
square
#764CE2 #E24C6D #B8E24C #4CE2C1
split-complementary
#764CE2 #E2C14C #6DE24C
monochromatic
#3D199B #5222CF #764CE2 #9E81EB #C7B5F3

Accessibility & contrast

On white

5.38
#764CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#764CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764CE2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764CE2#FFFFFF#000000##FFFFFF
##764CE21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#0067DF
Tritanopia (blue-blind)
#537191
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #764ce2;
/* rgb */ color: rgb(118, 76, 226);
/* oklch */ color: oklch(54.8% 0.215 290.4);
Tailwind
colors: {
  custom: {
    50: '#a681ec',
    500: '#764ce2',
    950: '#000000',
  },
}
SCSS
$custom: #764ce2;
$custom-light: #a681ec;
$custom-dark: #000000;
JSON
{
  "hex": "#764ce2",
  "rgb": {
    "r": 118,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 256.8,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.54819,
    "c": 0.215,
    "h": 290.4
  },
  "luminance": 0.14511
}

Semantic roles & 50–950 ramp

primary
#764CE2
secondary
#D2E2A8
accent
#EF39BC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #764CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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