#7642C1#7642C1

#7642C1 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.189 H 298.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7642C1
RGBrgb(118, 66, 193)
HSLhsl(265, 51%, 51%)
HSVhsv(265, 66%, 76%)
CMYKcmyk(38.9%, 65.8%, 0%, 24.3%)
CIE-LABlab(40.57, 48.74, -58.47)
CIE-LCHlch(40.57, 76.12, 309.81°)
OKLaboklab(50.89% 0.0893 -0.1667)
OKLCHoklch(50.89% 0.189 298.2)
XYZxyz(19.0426, 11.5980, 51.6771)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642C1 #8DC142
analogous
#424DC1 #7642C1 #B642C1
triadic
#7642C1 #C17642 #42C176
tetradic
#7642C1 #C1424D #8DC142 #42C1B6
square
#7642C1 #C1424D #8DC142 #42C1B6
split-complementary
#7642C1 #C1B642 #4DC142
monochromatic
#3E2267 #5A3195 #7642C1 #9770D0 #B99EDF

Accessibility & contrast

On white

6.33
#7642C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7642C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7642C1#FFFFFF#000000##FFFFFF
##7642C11.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#005EBE
Tritanopia (blue-blind)
#645F7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7642c1;
/* rgb */ color: rgb(118, 66, 193);
/* oklch */ color: oklch(50.9% 0.189 298.2);
Tailwind
colors: {
  custom: {
    50: '#a37ad5',
    500: '#7642c1',
    950: '#000000',
  },
}
SCSS
$custom: #7642c1;
$custom-light: #a37ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7642c1",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 264.567,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5089,
    "c": 0.18905,
    "h": 298.2
  },
  "luminance": 0.11598
}

Semantic roles & 50–950 ramp

primary
#7642C1
secondary
#B5CC93
accent
#DA4EA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7642C1

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

Preview Lab → · Contrast checker → · Palette generator →

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