#7640BA#7640BA

#7640BA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.184 H 300.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7640BA
RGBrgb(118, 64, 186)
HSLhsl(267, 49%, 49%)
HSVhsv(267, 66%, 73%)
CMYKcmyk(36.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(39.69, 47.98, -55.80)
CIE-LCHlch(39.69, 73.59, 310.69°)
OKLaboklab(50.1% 0.0922 -0.1588)
OKLCHoklch(50.1% 0.184 300.1)
XYZxyz(18.1654, 11.0634, 47.6233)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640BA #84BA40
analogous
#4047BA #7640BA #B340BA
triadic
#7640BA #BA7640 #40BA76
tetradic
#7640BA #BA4047 #84BA40 #40BAB3
square
#7640BA #BA4047 #84BA40 #40BAB3
split-complementary
#7640BA #BAB340 #47BA40
monochromatic
#3C215F #59308C #7640BA #966BCC #B699DC

Accessibility & contrast

On white

6.54
#7640BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7640BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640BA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640BA#FFFFFF#000000##FFFFFF
##7640BA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#675C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7640ba;
/* rgb */ color: rgb(118, 64, 186);
/* oklch */ color: oklch(50.1% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#a278cf',
    500: '#7640ba',
    950: '#000000',
  },
}
SCSS
$custom: #7640ba;
$custom-light: #a278cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7640ba",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 266.557,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50095,
    "c": 0.18364,
    "h": 300.1
  },
  "luminance": 0.11064
}

Semantic roles & 50–950 ramp

primary
#7640BA
secondary
#AEC88E
accent
#D84F9C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7640BA

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

Preview Lab → · Contrast checker → · Palette generator →

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