#764BB2#764BB2

#764BB2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.1% C 0.158 H 300.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#764BB2
RGBrgb(118, 75, 178)
HSLhsl(265, 41%, 50%)
HSVhsv(265, 58%, 70%)
CMYKcmyk(33.7%, 57.9%, 0%, 30.2%)
CIE-LABlab(41.37, 39.95, -48.38)
CIE-LCHlch(41.37, 62.75, 309.55°)
OKLaboklab(51.15% 0.0794 -0.137)
OKLCHoklch(51.15% 0.158 300.1)
XYZxyz(18.0212, 12.0979, 43.4965)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#764BB2 #87B24B
analogous
#4B53B2 #764BB2 #AA4BB2
triadic
#764BB2 #B2764B #4BB276
tetradic
#764BB2 #B24B53 #87B24B #4BB2AA
square
#764BB2 #B24B53 #87B24B #4BB2AA
split-complementary
#764BB2 #B2AA4B #53B24B
monochromatic
#3D275C #593987 #764BB2 #9775C5 #B7A0D7

Accessibility & contrast

On white

6.14
#764BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#764BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #764BB2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##764BB2#FFFFFF#000000##FFFFFF
##764BB21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#2C61B0
Tritanopia (blue-blind)
#696077
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #764bb2;
/* rgb */ color: rgb(118, 75, 178);
/* oklch */ color: oklch(51.1% 0.158 300.1);
Tailwind
colors: {
  custom: {
    50: '#a17fca',
    500: '#764bb2',
    950: '#000000',
  },
}
SCSS
$custom: #764bb2;
$custom-light: #a17fca;
$custom-dark: #000000;
JSON
{
  "hex": "#764bb2",
  "rgb": {
    "r": 118,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 265.049,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51148,
    "c": 0.15838,
    "h": 300.1
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

primary
#764BB2
secondary
#B0C495
accent
#D1579E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #764BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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