#7640D2#7640D2

#7640D2 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.211 H 294.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7640D2
RGBrgb(118, 64, 210)
HSLhsl(262, 62%, 54%)
HSVhsv(262, 70%, 82%)
CMYKcmyk(43.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(41.49, 54.17, -66.84)
CIE-LCHlch(41.49, 86.03, 309.02°)
OKLaboklab(51.95% 0.0888 -0.1912)
OKLCHoklch(51.95% 0.211 294.9)
XYZxyz(20.9343, 12.1710, 62.2065)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640D2 #9CD240
analogous
#4053D2 #7640D2 #BF40D2
triadic
#7640D2 #D27640 #40D276
tetradic
#7640D2 #D24053 #9CD240 #40D2BF
square
#7640D2 #D24053 #9CD240 #40D2BF
split-complementary
#7640D2 #D2BF40 #53D240
monochromatic
#401D7B #5929AC #7640D2 #9A72DE #BDA3E9

Accessibility & contrast

On white

6.11
#7640D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7640D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640D2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640D2#FFFFFF#000000##FFFFFF
##7640D21.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#5D6484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7640d2;
/* rgb */ color: rgb(118, 64, 210);
/* oklch */ color: oklch(51.9% 0.211 294.9);
Tailwind
colors: {
  custom: {
    50: '#a579e1',
    500: '#7640d2',
    950: '#000000',
  },
}
SCSS
$custom: #7640d2;
$custom-light: #a579e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7640d2",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 262.192,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.21086,
    "h": 294.9
  },
  "luminance": 0.12171
}

Semantic roles & 50–950 ramp

primary
#7640D2
secondary
#BFD698
accent
#E543A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7640D2

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

Preview Lab → · Contrast checker → · Palette generator →

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