#7640AA#7640AA

#7640AA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.9% C 0.165 H 304.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7640AA
RGBrgb(118, 64, 170)
HSLhsl(271, 45%, 46%)
HSVhsv(271, 62%, 67%)
CMYKcmyk(30.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(38.59, 43.96, -48.12)
CIE-LCHlch(38.59, 65.18, 312.42°)
OKLaboklab(48.95% 0.0934 -0.1362)
OKLCHoklch(48.95% 0.165 304.4)
XYZxyz(16.5587, 10.4207, 39.1615)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640AA #74AA40
analogous
#4140AA #7640AA #AA40A9
triadic
#7640AA #AA7640 #40AA76
tetradic
#7640AA #AA4140 #74AA40 #40A9AA
square
#7640AA #AA4140 #74AA40 #40A9AA
split-complementary
#7640AA #A9AA40 #40AA41
monochromatic
#381F51 #572F7E #7640AA #9563C4 #B38FD5

Accessibility & contrast

On white

6.81
#7640AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7640AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7640AA#FFFFFF#000000##FFFFFF
##7640AA1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#265BA8
Tritanopia (blue-blind)
#6D566F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7640aa;
/* rgb */ color: rgb(118, 64, 170);
/* oklch */ color: oklch(48.9% 0.165 304.4);
Tailwind
colors: {
  custom: {
    50: '#a178c4',
    500: '#7640aa',
    950: '#000000',
  },
}
SCSS
$custom: #7640aa;
$custom-light: #a178c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7640aa",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 270.566,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4895,
    "c": 0.16516,
    "h": 304.4
  },
  "luminance": 0.10421
}

Semantic roles & 50–950 ramp

primary
#7640AA
secondary
#A2C086
accent
#D55393
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7640AA

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

Preview Lab → · Contrast checker → · Palette generator →

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