#7642BF#7642BF

#7642BF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.187 H 298.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7642BF
RGBrgb(118, 66, 191)
HSLhsl(265, 49%, 50%)
HSVhsv(265, 65%, 75%)
CMYKcmyk(38.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(40.43, 48.22, -57.54)
CIE-LCHlch(40.43, 75.07, 309.96°)
OKLaboklab(50.74% 0.0895 -0.1639)
OKLCHoklch(50.74% 0.187 298.6)
XYZxyz(18.8210, 11.5093, 50.5100)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642BF #8BBF42
analogous
#424CBF #7642BF #B442BF
triadic
#7642BF #BF7642 #42BF76
tetradic
#7642BF #BF424C #8BBF42 #42BFB4
square
#7642BF #BF424C #8BBF42 #42BFB4
split-complementary
#7642BF #BFB442 #4CBF42
monochromatic
#3E2265 #5A3292 #7642BF #9770CE #B89DDE

Accessibility & contrast

On white

6.36
#7642BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7642BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642BF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642BF#FFFFFF#000000##FFFFFF
##7642BF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#655F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7642bf;
/* rgb */ color: rgb(118, 66, 191);
/* oklch */ color: oklch(50.7% 0.187 298.6);
Tailwind
colors: {
  custom: {
    50: '#a37ad3',
    500: '#7642bf',
    950: '#000000',
  },
}
SCSS
$custom: #7642bf;
$custom-light: #a37ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7642bf",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 264.96,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5074,
    "c": 0.18674,
    "h": 298.6
  },
  "luminance": 0.1151
}

Semantic roles & 50–950 ramp

primary
#7642BF
secondary
#B3CA93
accent
#D94F9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7642BF

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

Preview Lab → · Contrast checker → · Palette generator →

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