#7642CC#7642CC

#7642CC is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.202 H 295.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7642CC
RGBrgb(118, 66, 204)
HSLhsl(263, 58%, 53%)
HSVhsv(263, 68%, 80%)
CMYKcmyk(42.2%, 67.6%, 0%, 20%)
CIE-LABlab(41.39, 51.60, -63.54)
CIE-LCHlch(41.39, 81.85, 309.08°)
OKLaboklab(51.73% 0.0878 -0.1816)
OKLCHoklch(51.73% 0.202 295.8)
XYZxyz(20.3156, 12.1072, 58.3816)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642CC #98CC42
analogous
#4253CC #7642CC #BB42CC
triadic
#7642CC #CC7642 #42CC76
tetradic
#7642CC #CC4253 #98CC42 #42CCBB
square
#7642CC #CC4253 #98CC42 #42CCBB
split-complementary
#7642CC #CCBB42 #53CC42
monochromatic
#3F1F74 #5A2CA4 #7642CC #9972D9 #BCA2E6

Accessibility & contrast

On white

6.14
#7642CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7642CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7642CC#FFFFFF#000000##FFFFFF
##7642CC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#5F6382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7642cc;
/* rgb */ color: rgb(118, 66, 204);
/* oklch */ color: oklch(51.7% 0.202 295.8);
Tailwind
colors: {
  custom: {
    50: '#a47adc',
    500: '#7642cc',
    950: '#000000',
  },
}
SCSS
$custom: #7642cc;
$custom-light: #a47adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7642cc",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 262.609,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51732,
    "c": 0.20168,
    "h": 295.8
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#7642CC
secondary
#BCD397
accent
#E147A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642CC

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

Preview Lab → · Contrast checker → · Palette generator →

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