#7642D1#7642D1

#7642D1 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.1% C 0.207 H 294.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7642D1
RGBrgb(118, 66, 209)
HSLhsl(262, 61%, 54%)
HSVhsv(262, 68%, 82%)
CMYKcmyk(43.5%, 68.4%, 0%, 18%)
CIE-LABlab(41.77, 52.91, -65.80)
CIE-LCHlch(41.77, 84.44, 308.80°)
OKLaboklab(52.13% 0.087 -0.1882)
OKLCHoklch(52.13% 0.207 294.8)
XYZxyz(20.9250, 12.3509, 61.5907)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642D1 #9DD142
analogous
#4256D1 #7642D1 #BE42D1
triadic
#7642D1 #D17642 #42D176
tetradic
#7642D1 #D14256 #9DD142 #42D1BE
square
#7642D1 #D14256 #9DD142 #42D1BE
split-complementary
#7642D1 #D1BE42 #56D142
monochromatic
#401E7B #592AAC #7642D1 #9A73DD #BDA4E9

Accessibility & contrast

On white

6.05
#7642D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7642D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642D1
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642D1#FFFFFF#000000##FFFFFF
##7642D11.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0060CE
Tritanopia (blue-blind)
#5D6584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7642d1;
/* rgb */ color: rgb(118, 66, 209);
/* oklch */ color: oklch(52.1% 0.207 294.8);
Tailwind
colors: {
  custom: {
    50: '#a57ae0',
    500: '#7642d1',
    950: '#000000',
  },
}
SCSS
$custom: #7642d1;
$custom-light: #a57ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7642d1",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 261.818,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52126,
    "c": 0.20737,
    "h": 294.8
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#7642D1
secondary
#C0D699
accent
#E444AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642D1

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

Preview Lab → · Contrast checker → · Palette generator →

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