#7642CF#7642CF

#7642CF is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.205 H 295.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7642CF
RGBrgb(118, 66, 207)
HSLhsl(262, 59%, 54%)
HSVhsv(262, 68%, 81%)
CMYKcmyk(43%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.61, 52.38, -64.90)
CIE-LCHlch(41.61, 83.40, 308.91°)
OKLaboklab(51.97% 0.0874 -0.1856)
OKLCHoklch(51.97% 0.205 295.2)
XYZxyz(20.6789, 12.2525, 60.2948)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642CF #9BCF42
analogous
#4254CF #7642CF #BD42CF
triadic
#7642CF #CF7642 #42CF76
tetradic
#7642CF #CF4254 #9BCF42 #42CFBD
square
#7642CF #CF4254 #9BCF42 #42CFBD
split-complementary
#7642CF #CFBD42 #54CF42
monochromatic
#401F78 #592BA9 #7642CF #9973DB #BDA4E8

Accessibility & contrast

On white

6.09
#7642CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7642CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7642CF#FFFFFF#000000##FFFFFF
##7642CF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#5E6483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7642cf;
/* rgb */ color: rgb(118, 66, 207);
/* oklch */ color: oklch(52.0% 0.205 295.2);
Tailwind
colors: {
  custom: {
    50: '#a47adf',
    500: '#7642cf',
    950: '#000000',
  },
}
SCSS
$custom: #7642cf;
$custom-light: #a47adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7642cf",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 262.128,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.2051,
    "h": 295.2
  },
  "luminance": 0.12253
}

Semantic roles & 50–950 ramp

primary
#7642CF
secondary
#BED598
accent
#E345A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642CF

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

Preview Lab → · Contrast checker → · Palette generator →

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