#7642CD#7642CD

#7642CD is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.8% C 0.203 H 295.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7642CD
RGBrgb(118, 66, 205)
HSLhsl(262, 58%, 53%)
HSVhsv(262, 68%, 80%)
CMYKcmyk(42.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(41.46, 51.86, -63.99)
CIE-LCHlch(41.46, 82.37, 309.02°)
OKLaboklab(51.81% 0.0877 -0.1829)
OKLCHoklch(51.81% 0.203 295.6)
XYZxyz(20.4359, 12.1553, 59.0153)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7642CD #99CD42
analogous
#4253CD #7642CD #BB42CD
triadic
#7642CD #CD7642 #42CD76
tetradic
#7642CD #CD4253 #99CD42 #42CDBB
square
#7642CD #CD4253 #99CD42 #42CDBB
split-complementary
#7642CD #CDBB42 #53CD42
monochromatic
#3F1F76 #5A2CA6 #7642CD #9972DA #BCA3E7

Accessibility & contrast

On white

6.12
#7642CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7642CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7642CD
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7642CD#FFFFFF#000000##FFFFFF
##7642CD1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#5F6482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7642cd;
/* rgb */ color: rgb(118, 66, 205);
/* oklch */ color: oklch(51.8% 0.203 295.6);
Tailwind
colors: {
  custom: {
    50: '#a47add',
    500: '#7642cd',
    950: '#000000',
  },
}
SCSS
$custom: #7642cd;
$custom-light: #a47add;
$custom-dark: #000000;
JSON
{
  "hex": "#7642cd",
  "rgb": {
    "r": 118,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 262.446,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51811,
    "c": 0.20282,
    "h": 295.6
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

primary
#7642CD
secondary
#BDD397
accent
#E146A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7642CD

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

Preview Lab → · Contrast checker → · Palette generator →

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