#7640AC#7640AC

#7640AC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.167 H 303.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7640AC
RGBrgb(118, 64, 172)
HSLhsl(270, 46%, 46%)
HSVhsv(270, 63%, 67%)
CMYKcmyk(31.4%, 62.8%, 0%, 32.5%)
CIE-LABlab(38.72, 44.46, -49.09)
CIE-LCHlch(38.72, 66.23, 312.17°)
OKLaboklab(49.09% 0.0933 -0.1391)
OKLCHoklch(49.09% 0.167 303.9)
XYZxyz(16.7493, 10.4969, 40.1654)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640AC #76AC40
analogous
#4040AC #7640AC #AC40AC
triadic
#7640AC #AC7640 #40AC76
tetradic
#7640AC #AC4040 #76AC40 #40ACAC
square
#7640AC #AC4040 #76AC40 #40ACAC
split-complementary
#7640AC #ACAC40 #40AC40
monochromatic
#391F53 #572F7F #7640AC #9564C5 #B391D6

Accessibility & contrast

On white

6.78
#7640AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7640AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640AC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640AC#FFFFFF#000000##FFFFFF
##7640AC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#235BAA
Tritanopia (blue-blind)
#6C5770
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7640ac;
/* rgb */ color: rgb(118, 64, 172);
/* oklch */ color: oklch(49.1% 0.167 303.9);
Tailwind
colors: {
  custom: {
    50: '#a178c5',
    500: '#7640ac',
    950: '#000000',
  },
}
SCSS
$custom: #7640ac;
$custom-light: #a178c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7640ac",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 270,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49089,
    "c": 0.16748,
    "h": 303.9
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#7640AC
secondary
#A4C187
accent
#D55294
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7640AC

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

Preview Lab → · Contrast checker → · Palette generator →

#7640AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva