#7640CB#7640CB

#7640CB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.203 H 296.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7640CB
RGBrgb(118, 64, 203)
HSLhsl(263, 57%, 52%)
HSVhsv(263, 68%, 80%)
CMYKcmyk(41.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.94, 52.35, -63.68)
CIE-LCHlch(40.94, 82.43, 309.42°)
OKLaboklab(51.39% 0.09 -0.182)
OKLCHoklch(51.39% 0.203 296.3)
XYZxyz(20.0813, 11.8297, 57.7137)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7640CB #95CB40
analogous
#4050CB #7640CB #BB40CB
triadic
#7640CB #CB7640 #40CB76
tetradic
#7640CB #CB4050 #95CB40 #40CBBB
square
#7640CB #CB4050 #95CB40 #40CBBB
split-complementary
#7640CB #CBBB40 #50CB40
monochromatic
#3F1F72 #5A2CA2 #7640CB #9970D8 #BBA0E5

Accessibility & contrast

On white

6.24
#7640CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7640CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7640CB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7640CB#FFFFFF#000000##FFFFFF
##7640CB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7640cb;
/* rgb */ color: rgb(118, 64, 203);
/* oklch */ color: oklch(51.4% 0.203 296.3);
Tailwind
colors: {
  custom: {
    50: '#a479dc',
    500: '#7640cb',
    950: '#000000',
  },
}
SCSS
$custom: #7640cb;
$custom-light: #a479dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7640cb",
  "rgb": {
    "r": 118,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 263.309,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51393,
    "c": 0.20299,
    "h": 296.3
  },
  "luminance": 0.1183
}

Semantic roles & 50–950 ramp

primary
#7640CB
secondary
#BAD295
accent
#E047A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7640CB

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

Preview Lab → · Contrast checker → · Palette generator →

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