#7642CA#7642CA

#7642CA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.199 H 296.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7642CA
RGBrgb(118, 66, 202)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 67%, 79%)
CMYKcmyk(41.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.23, 51.08, -62.63)
CIE-LCHlch(41.23, 80.81, 309.20°)
OKLaboklab(51.58% 0.0881 -0.1789)
OKLCHoklch(51.58% 0.199 296.2)
XYZxyz(20.0773, 12.0118, 57.1264)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642CA #96CA42
analogous
#4252CA #7642CA #BA42CA
triadic
#7642CA #CA7642 #42CA76
tetradic
#7642CA #CA4252 #96CA42 #42CABA
square
#7642CA #CA4252 #96CA42 #42CABA
split-complementary
#7642CA #CABA42 #52CA42
monochromatic
#3F2072 #5A2DA2 #7642CA #9972D7 #BBA2E5

Accessibility & contrast

On white

6.17
#7642CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7642CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7642CA#FFFFFF#000000##FFFFFF
##7642CA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#606381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7642ca;
/* rgb */ color: rgb(118, 66, 202);
/* oklch */ color: oklch(51.6% 0.199 296.2);
Tailwind
colors: {
  custom: {
    50: '#a47adb',
    500: '#7642ca',
    950: '#000000',
  },
}
SCSS
$custom: #7642ca;
$custom-light: #a47adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7642ca",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 262.941,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.1994,
    "h": 296.2
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#7642CA
secondary
#BBD196
accent
#DF48A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642CA

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

Preview Lab → · Contrast checker → · Palette generator →

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