#7F64C4#7F64C4

#7F64C4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.4% C 0.144 H 294.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7F64C4
RGBrgb(127, 100, 196)
HSLhsl(257, 45%, 58%)
HSVhsv(257, 49%, 77%)
CMYKcmyk(35.2%, 49%, 0%, 23.1%)
CIE-LABlab(49.02, 32.53, -46.58)
CIE-LCHlch(49.02, 56.82, 304.93°)
OKLaboklab(57.38% 0.0596 -0.1315)
OKLCHoklch(57.38% 0.144 294.4)
XYZxyz(23.2708, 17.6114, 54.3871)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F64C4 #A9C464
analogous
#6479C4 #7F64C4 #AF64C4
triadic
#7F64C4 #C47F64 #64C47F
tetradic
#7F64C4 #C46479 #A9C464 #64C4AF
square
#7F64C4 #C46479 #A9C464 #64C4AF
split-complementary
#7F64C4 #C4AF64 #79C464
monochromatic
#46307E #5E41AA #7F64C4 #A490D5 #C8BDE6

Accessibility & contrast

On white

4.64
#7F64C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7F64C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F64C4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F64C4#FFFFFF#000000##FFFFFF
##7F64C41.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4175C7
Deuteranopia (green-blind)
#4673C2
Tritanopia (blue-blind)
#6F778B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f64c4;
/* rgb */ color: rgb(127, 100, 196);
/* oklch */ color: oklch(57.4% 0.144 294.4);
Tailwind
colors: {
  custom: {
    50: '#a790d6',
    500: '#7f64c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f64c4;
$custom-light: #a790d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f64c4",
  "rgb": {
    "r": 127,
    "g": 100,
    "b": 196
  },
  "hsl": {
    "h": 256.875,
    "s": 44.86,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57379,
    "c": 0.14435,
    "h": 294.4
  },
  "luminance": 0.17612
}

Semantic roles & 50–950 ramp

primary
#7F64C4
secondary
#CAD5AF
accent
#D553B0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F64C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7F64C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva