#7642BC#7642BC

#7642BC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.183 H 299.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7642BC
RGBrgb(118, 66, 188)
HSLhsl(266, 48%, 50%)
HSVhsv(266, 65%, 74%)
CMYKcmyk(37.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.21, 47.45, -56.13)
CIE-LCHlch(40.21, 73.50, 310.21°)
OKLaboklab(50.52% 0.0898 -0.1598)
OKLCHoklch(50.52% 0.183 299.3)
XYZxyz(18.4943, 11.3786, 48.7891)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642BC #88BC42
analogous
#424BBC #7642BC #B342BC
triadic
#7642BC #BC7642 #42BC76
tetradic
#7642BC #BC424B #88BC42 #42BCB3
square
#7642BC #BC424B #88BC42 #42BCB3
split-complementary
#7642BC #BCB342 #4BBC42
monochromatic
#3D2261 #5A328F #7642BC #976FCC #B79CDC

Accessibility & contrast

On white

6.41
#7642BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7642BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642BC
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642BC#FFFFFF#000000##FFFFFF
##7642BC1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#665E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7642bc;
/* rgb */ color: rgb(118, 66, 188);
/* oklch */ color: oklch(50.5% 0.183 299.3);
Tailwind
colors: {
  custom: {
    50: '#a379d1',
    500: '#7642bc',
    950: '#000000',
  },
}
SCSS
$custom: #7642bc;
$custom-light: #a379d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7642bc",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 265.574,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50518,
    "c": 0.18326,
    "h": 299.3
  },
  "luminance": 0.11379
}

Semantic roles & 50–950 ramp

primary
#7642BC
secondary
#B1C991
accent
#D8509E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7642BC

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

Preview Lab → · Contrast checker → · Palette generator →

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