#7640B2#7640B2

#7640B2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.174 H 302.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7640B2
RGBrgb(118, 64, 178)
HSLhsl(268, 47%, 47%)
HSVhsv(268, 64%, 70%)
CMYKcmyk(33.7%, 64%, 0%, 30.2%)
CIE-LABlab(39.13, 45.96, -51.99)
CIE-LCHlch(39.13, 69.39, 311.47°)
OKLaboklab(49.51% 0.0929 -0.1476)
OKLCHoklch(49.51% 0.174 302.2)
XYZxyz(17.3386, 10.7327, 43.2690)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640B2 #7CB240
analogous
#4043B2 #7640B2 #AF40B2
triadic
#7640B2 #B27640 #40B276
tetradic
#7640B2 #B24043 #7CB240 #40B2AF
square
#7640B2 #B24043 #7CB240 #40B2AF
split-complementary
#7640B2 #B2AF40 #43B240
monochromatic
#3A2058 #583085 #7640B2 #9567C8 #B494D8

Accessibility & contrast

On white

6.67
#7640B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7640B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640B2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640B2#FFFFFF#000000##FFFFFF
##7640B21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#6A5973
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7640b2;
/* rgb */ color: rgb(118, 64, 178);
/* oklch */ color: oklch(49.5% 0.174 302.2);
Tailwind
colors: {
  custom: {
    50: '#a278ca',
    500: '#7640b2',
    950: '#000000',
  },
}
SCSS
$custom: #7640b2;
$custom-light: #a278ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7640b2",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 268.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49513,
    "c": 0.17443,
    "h": 302.2
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#7640B2
secondary
#A8C48A
accent
#D75197
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7640B2

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

Preview Lab → · Contrast checker → · Palette generator →

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