#764DB7#764DB7

#764DB7 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.162 H 298.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#764DB7
RGBrgb(118, 77, 183)
HSLhsl(263, 42%, 51%)
HSVhsv(263, 58%, 72%)
CMYKcmyk(35.5%, 57.9%, 0%, 28.2%)
CIE-LABlab(42.12, 40.13, -50.12)
CIE-LCHlch(42.12, 64.21, 308.69°)
OKLaboklab(51.8% 0.0769 -0.1421)
OKLCHoklch(51.8% 0.162 298.4)
XYZxyz(18.6702, 12.5780, 46.2347)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764DB7 #8EB74D
analogous
#4D59B7 #764DB7 #AB4DB7
triadic
#764DB7 #B7764D #4DB776
tetradic
#764DB7 #B74D59 #8EB74D #4DB7AB
square
#764DB7 #B74D59 #8EB74D #4DB7AB
split-complementary
#764DB7 #B7AB4D #59B74D
monochromatic
#3E2862 #5A398E #764DB7 #9879C9 #B9A4DA

Accessibility & contrast

On white

5.97
#764DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#764DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764DB7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764DB7#FFFFFF#000000##FFFFFF
##764DB71.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1763BA
Deuteranopia (green-blind)
#2962B5
Tritanopia (blue-blind)
#68637A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #764db7;
/* rgb */ color: rgb(118, 77, 183);
/* oklch */ color: oklch(51.8% 0.162 298.4);
Tailwind
colors: {
  custom: {
    50: '#a180cd',
    500: '#764db7',
    950: '#000000',
  },
}
SCSS
$custom: #764db7;
$custom-light: #a180cd;
$custom-dark: #000000;
JSON
{
  "hex": "#764db7",
  "rgb": {
    "r": 118,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 263.208,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.518,
    "c": 0.1616,
    "h": 298.4
  },
  "luminance": 0.12578
}

Semantic roles & 50–950 ramp

primary
#764DB7
secondary
#B5C798
accent
#D256A2
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #764DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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