#764CEC#764CEC

#764CEC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.6% C 0.227 H 288.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#764CEC
RGBrgb(118, 76, 236)
HSLhsl(256, 81%, 61%)
HSVhsv(256, 68%, 93%)
CMYKcmyk(50%, 67.8%, 0%, 7.5%)
CIE-LABlab(45.74, 55.07, -74.72)
CIE-LCHlch(45.74, 92.82, 306.39°)
OKLaboklab(55.62% 0.0733 -0.2144)
OKLCHoklch(55.62% 0.227 288.9)
XYZxyz(25.1916, 15.0754, 80.9231)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764CEC #C2EC4C
analogous
#4C72EC #764CEC #C64CEC
triadic
#764CEC #EC764C #4CEC76
tetradic
#764CEC #EC4C72 #C2EC4C #4CECC6
square
#764CEC #EC4C72 #C2EC4C #4CECC6
split-complementary
#764CEC #ECC64C #72EC4C
monochromatic
#3A12AB #4D18E3 #764CEC #A083F2 #CBBBF8

Accessibility & contrast

On white

5.23
#764CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#764CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764CEC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764CEC#FFFFFF#000000##FFFFFF
##764CEC1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#4C7596
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #764cec;
/* rgb */ color: rgb(118, 76, 236);
/* oklch */ color: oklch(55.6% 0.227 288.9);
Tailwind
colors: {
  custom: {
    50: '#a781f3',
    500: '#764cec',
    950: '#000000',
  },
}
SCSS
$custom: #764cec;
$custom-light: #a781f3;
$custom-dark: #000000;
JSON
{
  "hex": "#764cec",
  "rgb": {
    "r": 118,
    "g": 76,
    "b": 236
  },
  "hsl": {
    "h": 255.75,
    "s": 80.808,
    "l": 61.176
  },
  "oklch": {
    "l": 0.55622,
    "c": 0.22662,
    "h": 288.9
  },
  "luminance": 0.15077
}

Semantic roles & 50–950 ramp

primary
#764CEC
secondary
#D8E8AC
accent
#DD08A5
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110A17
muted
#807C85

Preview Lab

Preview with #764CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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