#7642AA#7642AA

#7642AA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.162 H 304.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7642AA
RGBrgb(118, 66, 170)
HSLhsl(270, 44%, 46%)
HSVhsv(270, 61%, 67%)
CMYKcmyk(30.6%, 61.2%, 0%, 33.3%)
CIE-LABlab(38.99, 42.89, -47.48)
CIE-LCHlch(38.99, 63.98, 312.10°)
OKLaboklab(49.24% 0.0909 -0.1343)
OKLCHoklch(49.24% 0.162 304.1)
XYZxyz(16.6735, 10.6503, 39.1997)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642AA #76AA42
analogous
#4242AA #7642AA #AA42AA
triadic
#7642AA #AA7642 #42AA76
tetradic
#7642AA #AA4242 #76AA42 #42AAAA
square
#7642AA #AA4242 #76AA42 #42AAAA
split-complementary
#7642AA #AAAA42 #42AA42
monochromatic
#392052 #57317E #7642AA #9566C3 #B392D5

Accessibility & contrast

On white

6.71
#7642AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7642AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642AA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642AA#FFFFFF#000000##FFFFFF
##7642AA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095BAD
Deuteranopia (green-blind)
#295CA8
Tritanopia (blue-blind)
#6C5770
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7642aa;
/* rgb */ color: rgb(118, 66, 170);
/* oklch */ color: oklch(49.2% 0.162 304.1);
Tailwind
colors: {
  custom: {
    50: '#a179c4',
    500: '#7642aa',
    950: '#000000',
  },
}
SCSS
$custom: #7642aa;
$custom-light: #a179c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7642aa",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4924,
    "c": 0.16221,
    "h": 304.1
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#7642AA
secondary
#A4C088
accent
#D45494
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7642AA

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

Preview Lab → · Contrast checker → · Palette generator →

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