#764BA2#764BA2

#764BA2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.1% C 0.138 H 304.7°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#764BA2
RGBrgb(118, 75, 162)
HSLhsl(270, 37%, 46%)
HSVhsv(270, 54%, 64%)
CMYKcmyk(27.2%, 53.7%, 0%, 36.5%)
CIE-LABlab(40.40, 35.87, -40.45)
CIE-LCHlch(40.40, 54.06, 311.57°)
OKLaboklab(50.12% 0.0789 -0.1138)
OKLCHoklch(50.12% 0.138 304.7)
XYZxyz(16.5075, 11.4924, 35.5240)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764BA2 #77A24B
analogous
#4B4CA2 #764BA2 #A24BA2
triadic
#764BA2 #A2764B #4BA276
tetradic
#764BA2 #A24B4C #77A24B #4BA2A2
square
#764BA2 #A24B4C #77A24B #4BA2A2
split-complementary
#764BA2 #A2A24B #4CA24B
monochromatic
#39244E #583878 #764BA2 #956EBC #B398CF

Accessibility & contrast

On white

6.37
#764BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#764BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764BA2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764BA2#FFFFFF#000000##FFFFFF
##764BA21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#3C5FA0
Tritanopia (blue-blind)
#6F5B6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #764ba2;
/* rgb */ color: rgb(118, 75, 162);
/* oklch */ color: oklch(50.1% 0.138 304.7);
Tailwind
colors: {
  custom: {
    50: '#a07fbe',
    500: '#764ba2',
    950: '#000000',
  },
}
SCSS
$custom: #764ba2;
$custom-light: #a07fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#764ba2",
  "rgb": {
    "r": 118,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 269.655,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50118,
    "c": 0.13843,
    "h": 304.7
  },
  "luminance": 0.11492
}

Semantic roles & 50–950 ramp

primary
#764BA2
secondary
#A5BC8D
accent
#CD5B95
background
#FAF7FB
surface
#F3EEF7
border
#CDC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #764BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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