#7640BF#7640BF

#7640BF is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.189 H 298.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7640BF
RGBrgb(118, 64, 191)
HSLhsl(266, 50%, 50%)
HSVhsv(266, 66%, 75%)
CMYKcmyk(38.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(40.05, 49.25, -58.15)
CIE-LCHlch(40.05, 76.21, 310.27°)
OKLaboklab(50.47% 0.0917 -0.1657)
OKLCHoklch(50.47% 0.189 298.9)
XYZxyz(18.7062, 11.2797, 50.4718)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640BF #89BF40
analogous
#4049BF #7640BF #B640BF
triadic
#7640BF #BF7640 #40BF76
tetradic
#7640BF #BF4049 #89BF40 #40BFB6
square
#7640BF #BF4049 #89BF40 #40BFB6
split-complementary
#7640BF #BFB640 #49BF40
monochromatic
#3D2163 #5A3191 #7640BF #976ECE #B89CDE

Accessibility & contrast

On white

6.45
#7640BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7640BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640BF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640BF#FFFFFF#000000##FFFFFF
##7640BF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#655D7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7640bf;
/* rgb */ color: rgb(118, 64, 191);
/* oklch */ color: oklch(50.5% 0.189 298.9);
Tailwind
colors: {
  custom: {
    50: '#a378d3',
    500: '#7640bf',
    950: '#000000',
  },
}
SCSS
$custom: #7640bf;
$custom-light: #a378d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7640bf",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 265.512,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50469,
    "c": 0.18937,
    "h": 298.9
  },
  "luminance": 0.1128
}

Semantic roles & 50–950 ramp

primary
#7640BF
secondary
#B2CA91
accent
#D94E9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7640BF

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

Preview Lab → · Contrast checker → · Palette generator →

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