#7642D2#7642D2

#7642D2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.208 H 294.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7642D2
RGBrgb(118, 66, 210)
HSLhsl(262, 62%, 54%)
HSVhsv(262, 69%, 82%)
CMYKcmyk(43.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.85, 53.17, -66.25)
CIE-LCHlch(41.85, 84.95, 308.75°)
OKLaboklab(52.21% 0.0869 -0.1895)
OKLCHoklch(52.21% 0.209 294.6)
XYZxyz(21.0491, 12.4006, 62.2448)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642D2 #9ED242
analogous
#4256D2 #7642D2 #BE42D2
triadic
#7642D2 #D27642 #42D276
tetradic
#7642D2 #D24256 #9ED242 #42D2BE
square
#7642D2 #D24256 #9ED242 #42D2BE
split-complementary
#7642D2 #D2BE42 #56D242
monochromatic
#401E7C #5929AD #7642D2 #9A73DE #BEA5EA

Accessibility & contrast

On white

6.03
#7642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642D2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642D2#FFFFFF#000000##FFFFFF
##7642D21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#5C6685
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7642d2;
/* rgb */ color: rgb(118, 66, 210);
/* oklch */ color: oklch(52.2% 0.208 294.6);
Tailwind
colors: {
  custom: {
    50: '#a57ae1',
    500: '#7642d2',
    950: '#000000',
  },
}
SCSS
$custom: #7642d2;
$custom-light: #a57ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7642d2",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 261.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52205,
    "c": 0.2085,
    "h": 294.6
  },
  "luminance": 0.12401
}

Semantic roles & 50–950 ramp

primary
#7642D2
secondary
#C0D799
accent
#E543AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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