#7642CB#7642CB

#7642CB is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.201 H 296.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7642CB
RGBrgb(118, 66, 203)
HSLhsl(263, 57%, 53%)
HSVhsv(263, 67%, 80%)
CMYKcmyk(41.9%, 67.5%, 0%, 20.4%)
CIE-LABlab(41.31, 51.34, -63.08)
CIE-LCHlch(41.31, 81.33, 309.14°)
OKLaboklab(51.65% 0.088 -0.1802)
OKLCHoklch(51.65% 0.201 296)
XYZxyz(20.1961, 12.0593, 57.7520)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642CB #97CB42
analogous
#4252CB #7642CB #BB42CB
triadic
#7642CB #CB7642 #42CB76
tetradic
#7642CB #CB4252 #97CB42 #42CBBB
square
#7642CB #CB4252 #97CB42 #42CBBB
split-complementary
#7642CB #CBBB42 #52CB42
monochromatic
#3F2073 #5A2DA3 #7642CB #9972D8 #BCA2E5

Accessibility & contrast

On white

6.15
#7642CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7642CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642CB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642CB#FFFFFF#000000##FFFFFF
##7642CB1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#606381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7642cb;
/* rgb */ color: rgb(118, 66, 203);
/* oklch */ color: oklch(51.7% 0.201 296.0);
Tailwind
colors: {
  custom: {
    50: '#a47adc',
    500: '#7642cb',
    950: '#000000',
  },
}
SCSS
$custom: #7642cb;
$custom-light: #a47adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7642cb",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 262.774,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51655,
    "c": 0.20054,
    "h": 296
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#7642CB
secondary
#BCD297
accent
#E048A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642CB

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

Preview Lab → · Contrast checker → · Palette generator →

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