#7640C4#7640C4

#7640C4 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.195 H 297.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7640C4
RGBrgb(118, 64, 196)
HSLhsl(265, 53%, 51%)
HSVhsv(265, 67%, 77%)
CMYKcmyk(39.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(40.42, 50.54, -60.47)
CIE-LCHlch(40.42, 78.81, 309.89°)
OKLaboklab(50.85% 0.091 -0.1725)
OKLCHoklch(50.85% 0.195 297.8)
XYZxyz(19.2659, 11.5036, 53.4192)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640C4 #8EC440
analogous
#404CC4 #7640C4 #B840C4
triadic
#7640C4 #C47640 #40C476
tetradic
#7640C4 #C4404C #8EC440 #40C4B8
square
#7640C4 #C4404C #8EC440 #40C4B8
split-complementary
#7640C4 #C4B840 #4CC440
monochromatic
#3E2069 #5A2F98 #7640C4 #986FD2 #B99EE1

Accessibility & contrast

On white

6.36
#7640C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7640C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640C4
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640C4#FFFFFF#000000##FFFFFF
##7640C41.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#635F7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7640c4;
/* rgb */ color: rgb(118, 64, 196);
/* oklch */ color: oklch(50.8% 0.195 297.8);
Tailwind
colors: {
  custom: {
    50: '#a378d7',
    500: '#7640c4',
    950: '#000000',
  },
}
SCSS
$custom: #7640c4;
$custom-light: #a378d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7640c4",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 264.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50849,
    "c": 0.19506,
    "h": 297.8
  },
  "luminance": 0.11504
}

Semantic roles & 50–950 ramp

primary
#7640C4
secondary
#B5CD93
accent
#DC4CA1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7640C4

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

Preview Lab → · Contrast checker → · Palette generator →

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