#7642C4#7642C4

#7642C4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.193 H 297.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7642C4
RGBrgb(118, 66, 196)
HSLhsl(264, 52%, 51%)
HSVhsv(264, 66%, 77%)
CMYKcmyk(39.8%, 66.3%, 0%, 23.1%)
CIE-LABlab(40.79, 49.51, -59.87)
CIE-LCHlch(40.79, 77.69, 309.59°)
OKLaboklab(51.12% 0.0889 -0.1708)
OKLCHoklch(51.12% 0.193 297.5)
XYZxyz(19.3807, 11.7332, 53.4575)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642C4 #90C442
analogous
#424FC4 #7642C4 #B742C4
triadic
#7642C4 #C47642 #42C476
tetradic
#7642C4 #C4424F #90C442 #42C4B7
square
#7642C4 #C4424F #90C442 #42C4B7
split-complementary
#7642C4 #C4B742 #4FC442
monochromatic
#3E216A #5A3099 #7642C4 #9871D3 #BA9FE1

Accessibility & contrast

On white

6.27
#7642C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7642C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7642C4#FFFFFF#000000##FFFFFF
##7642C41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#63607D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7642c4;
/* rgb */ color: rgb(118, 66, 196);
/* oklch */ color: oklch(51.1% 0.193 297.5);
Tailwind
colors: {
  custom: {
    50: '#a37ad7',
    500: '#7642c4',
    950: '#000000',
  },
}
SCSS
$custom: #7642c4;
$custom-light: #a37ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7642c4",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 264,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51117,
    "c": 0.19251,
    "h": 297.5
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#7642C4
secondary
#B7CE94
accent
#DC4CA2
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7642C4

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

Preview Lab → · Contrast checker → · Palette generator →

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