#7642D4#7642D4

#7642D4 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.211 H 294.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7642D4
RGBrgb(118, 66, 212)
HSLhsl(261, 63%, 55%)
HSVhsv(261, 69%, 83%)
CMYKcmyk(44.3%, 68.9%, 0%, 16.9%)
CIE-LABlab(42.00, 53.70, -67.15)
CIE-LCHlch(42.00, 85.98, 308.65°)
OKLaboklab(52.36% 0.0866 -0.1922)
OKLCHoklch(52.36% 0.211 294.2)
XYZxyz(21.2999, 12.5009, 63.5653)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642D4 #A0D442
analogous
#4257D4 #7642D4 #BF42D4
triadic
#7642D4 #D47642 #42D476
tetradic
#7642D4 #D44257 #A0D442 #42D4BF
square
#7642D4 #D44257 #A0D442 #42D4BF
split-complementary
#7642D4 #D4BF42 #57D442
monochromatic
#401D7F #5928B1 #7642D4 #9A74DF #BEA6EB

Accessibility & contrast

On white

6.00
#7642D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7642D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642D4
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642D4#FFFFFF#000000##FFFFFF
##7642D41.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#5B6686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7642d4;
/* rgb */ color: rgb(118, 66, 212);
/* oklch */ color: oklch(52.4% 0.211 294.2);
Tailwind
colors: {
  custom: {
    50: '#a57ae2',
    500: '#7642d4',
    950: '#000000',
  },
}
SCSS
$custom: #7642d4;
$custom-light: #a57ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7642d4",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 261.37,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52365,
    "c": 0.21077,
    "h": 294.2
  },
  "luminance": 0.12501
}

Semantic roles & 50–950 ramp

primary
#7642D4
secondary
#C2D89A
accent
#E642AC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7642D4

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

Preview Lab → · Contrast checker → · Palette generator →

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