#7640BB#7640BB

#7640BB is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.185 H 299.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7640BB
RGBrgb(118, 64, 187)
HSLhsl(266, 49%, 49%)
HSVhsv(266, 66%, 73%)
CMYKcmyk(36.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(39.76, 48.23, -56.27)
CIE-LCHlch(39.76, 74.12, 310.60°)
OKLaboklab(50.17% 0.0921 -0.1602)
OKLCHoklch(50.17% 0.185 299.9)
XYZxyz(18.2720, 11.1060, 48.1851)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640BB #85BB40
analogous
#4048BB #7640BB #B440BB
triadic
#7640BB #BB7640 #40BB76
tetradic
#7640BB #BB4048 #85BB40 #40BBB4
square
#7640BB #BB4048 #85BB40 #40BBB4
split-complementary
#7640BB #BBB440 #48BB40
monochromatic
#3C2160 #59308D #7640BB #966CCD #B799DC

Accessibility & contrast

On white

6.52
#7640BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7640BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640BB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640BB#FFFFFF#000000##FFFFFF
##7640BB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#675C78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7640bb;
/* rgb */ color: rgb(118, 64, 187);
/* oklch */ color: oklch(50.2% 0.185 299.9);
Tailwind
colors: {
  custom: {
    50: '#a378d0',
    500: '#7640bb',
    950: '#000000',
  },
}
SCSS
$custom: #7640bb;
$custom-light: #a378d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7640bb",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 266.341,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50169,
    "c": 0.18478,
    "h": 299.9
  },
  "luminance": 0.11106
}

Semantic roles & 50–950 ramp

primary
#7640BB
secondary
#AFC88F
accent
#D94F9C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7640BB

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

Preview Lab → · Contrast checker → · Palette generator →

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