#764CB2#764CB2

#764CB2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.3% C 0.157 H 299.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#764CB2
RGBrgb(118, 76, 178)
HSLhsl(265, 40%, 50%)
HSVhsv(265, 57%, 70%)
CMYKcmyk(33.7%, 57.3%, 0%, 30.2%)
CIE-LABlab(41.59, 39.39, -48.04)
CIE-LCHlch(41.59, 62.12, 309.35°)
OKLaboklab(51.31% 0.0782 -0.136)
OKLCHoklch(51.31% 0.157 299.9)
XYZxyz(18.0896, 12.2346, 43.5193)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764CB2 #88B24C
analogous
#4C55B2 #764CB2 #A94CB2
triadic
#764CB2 #B2764C #4CB276
tetradic
#764CB2 #B24C55 #88B24C #4CB2A9
square
#764CB2 #B24C55 #88B24C #4CB2A9
split-complementary
#764CB2 #B2A94C #55B24C
monochromatic
#3D275C #5A3A87 #764CB2 #9776C5 #B7A1D7

Accessibility & contrast

On white

6.09
#764CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#764CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764CB2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764CB2#FFFFFF#000000##FFFFFF
##764CB21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#2E61B0
Tritanopia (blue-blind)
#696177
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #764cb2;
/* rgb */ color: rgb(118, 76, 178);
/* oklch */ color: oklch(51.3% 0.157 299.9);
Tailwind
colors: {
  custom: {
    50: '#a180ca',
    500: '#764cb2',
    950: '#000000',
  },
}
SCSS
$custom: #764cb2;
$custom-light: #a180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#764cb2",
  "rgb": {
    "r": 118,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 264.706,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.15687,
    "h": 299.9
  },
  "luminance": 0.12235
}

Semantic roles & 50–950 ramp

primary
#764CB2
secondary
#B1C496
accent
#D0589F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #764CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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