#7642D9#7642D9

#7642D9 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.216 H 293.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7642D9
RGBrgb(118, 66, 217)
HSLhsl(261, 67%, 55%)
HSVhsv(261, 70%, 85%)
CMYKcmyk(45.6%, 69.6%, 0%, 14.9%)
CIE-LABlab(42.40, 55.02, -69.38)
CIE-LCHlch(42.40, 88.54, 308.41°)
OKLaboklab(52.77% 0.0857 -0.1987)
OKLCHoklch(52.77% 0.216 293.3)
XYZxyz(21.9404, 12.7571, 66.9385)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642D9 #A5D942
analogous
#4259D9 #7642D9 #C142D9
triadic
#7642D9 #D97642 #42D976
tetradic
#7642D9 #D94259 #A5D942 #42D9C1
square
#7642D9 #D94259 #A5D942 #42D9C1
split-complementary
#7642D9 #D9C142 #59D942
monochromatic
#401B86 #5825B9 #7642D9 #9B75E3 #C0A8ED

Accessibility & contrast

On white

5.91
#7642D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7642D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642D9
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642D9#FFFFFF#000000##FFFFFF
##7642D91.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#0061D6
Tritanopia (blue-blind)
#596889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7642d9;
/* rgb */ color: rgb(118, 66, 217);
/* oklch */ color: oklch(52.8% 0.216 293.3);
Tailwind
colors: {
  custom: {
    50: '#a67ae6',
    500: '#7642d9',
    950: '#000000',
  },
}
SCSS
$custom: #7642d9;
$custom-light: #a67ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7642d9",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 260.662,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52768,
    "c": 0.2164,
    "h": 293.3
  },
  "luminance": 0.12758
}

Semantic roles & 50–950 ramp

primary
#7642D9
secondary
#C5DB9C
accent
#E93EAF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7642D9

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

Preview Lab → · Contrast checker → · Palette generator →

#7642D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva