#7640CC#7640CC

#7640CC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.204 H 296.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7640CC
RGBrgb(118, 64, 204)
HSLhsl(263, 58%, 53%)
HSVhsv(263, 69%, 80%)
CMYKcmyk(42.2%, 68.6%, 0%, 20%)
CIE-LABlab(41.02, 52.61, -64.13)
CIE-LCHlch(41.02, 82.95, 309.36°)
OKLaboklab(51.47% 0.0898 -0.1833)
OKLCHoklch(51.47% 0.204 296.1)
XYZxyz(20.2008, 11.8775, 58.3433)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640CC #96CC40
analogous
#4050CC #7640CC #BC40CC
triadic
#7640CC #CC7640 #40CC76
tetradic
#7640CC #CC4050 #96CC40 #40CCBC
square
#7640CC #CC4050 #96CC40 #40CCBC
split-complementary
#7640CC #CCBC40 #50CC40
monochromatic
#3F1F73 #5A2CA3 #7640CC #9970D9 #BBA1E6

Accessibility & contrast

On white

6.22
#7640CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7640CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640CC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640CC#FFFFFF#000000##FFFFFF
##7640CC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#5F6281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7640cc;
/* rgb */ color: rgb(118, 64, 204);
/* oklch */ color: oklch(51.5% 0.204 296.1);
Tailwind
colors: {
  custom: {
    50: '#a479dc',
    500: '#7640cc',
    950: '#000000',
  },
}
SCSS
$custom: #7640cc;
$custom-light: #a479dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7640cc",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 263.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51471,
    "c": 0.20412,
    "h": 296.1
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#7640CC
secondary
#BBD295
accent
#E147A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7640CC

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

Preview Lab → · Contrast checker → · Palette generator →

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