#7642BB#7642BB

#7642BB is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.182 H 299.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7642BB
RGBrgb(118, 66, 187)
HSLhsl(266, 48%, 50%)
HSVhsv(266, 65%, 73%)
CMYKcmyk(36.9%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.14, 47.19, -55.66)
CIE-LCHlch(40.14, 72.97, 310.29°)
OKLaboklab(50.44% 0.0899 -0.1584)
OKLCHoklch(50.44% 0.182 299.6)
XYZxyz(18.3869, 11.3357, 48.2234)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642BB #87BB42
analogous
#424BBB #7642BB #B342BB
triadic
#7642BB #BB7642 #42BB76
tetradic
#7642BB #BB424B #87BB42 #42BBB3
square
#7642BB #BB424B #87BB42 #42BBB3
split-complementary
#7642BB #BBB342 #4BBB42
monochromatic
#3D2261 #59328E #7642BB #976ECC #B79CDC

Accessibility & contrast

On white

6.43
#7642BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7642BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642BB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642BB#FFFFFF#000000##FFFFFF
##7642BB1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#005EB8
Tritanopia (blue-blind)
#675D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7642bb;
/* rgb */ color: rgb(118, 66, 187);
/* oklch */ color: oklch(50.4% 0.182 299.6);
Tailwind
colors: {
  custom: {
    50: '#a279d0',
    500: '#7642bb',
    950: '#000000',
  },
}
SCSS
$custom: #7642bb;
$custom-light: #a279d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7642bb",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 265.785,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50445,
    "c": 0.1821,
    "h": 299.6
  },
  "luminance": 0.11336
}

Semantic roles & 50–950 ramp

primary
#7642BB
secondary
#B0C891
accent
#D7509D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7642BB

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

Preview Lab → · Contrast checker → · Palette generator →

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