#7A40CD#7A40CD

#7A40CD is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.206 H 297.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7A40CD
RGBrgb(122, 64, 205)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 69%, 80%)
CMYKcmyk(40.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(41.55, 53.61, -63.83)
CIE-LCHlch(41.55, 83.36, 310.03°)
OKLaboklab(51.98% 0.0952 -0.1823)
OKLCHoklch(51.98% 0.206 297.6)
XYZxyz(20.8760, 12.2118, 59.0030)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CD #93CD40
analogous
#404CCD #7A40CD #C040CD
triadic
#7A40CD #CD7A40 #40CD7A
tetradic
#7A40CD #CD404C #93CD40 #40CDC0
square
#7A40CD #CD404C #93CD40 #40CDC0
split-complementary
#7A40CD #CDC040 #4CCD40
monochromatic
#421E74 #5D2BA5 #7A40CD #9C71DA #BEA1E6

Accessibility & contrast

On white

6.10
#7A40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7A40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CD
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CD#FFFFFF#000000##FFFFFF
##7A40CD1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#656282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a40cd;
/* rgb */ color: rgb(122, 64, 205);
/* oklch */ color: oklch(52.0% 0.206 297.6);
Tailwind
colors: {
  custom: {
    50: '#a779dd',
    500: '#7a40cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a40cd;
$custom-light: #a779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40cd",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 264.681,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51976,
    "c": 0.20565,
    "h": 297.6
  },
  "luminance": 0.12212
}

Semantic roles & 50–950 ramp

primary
#7A40CD
secondary
#BAD396
accent
#E246A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CD

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

Preview Lab → · Contrast checker → · Palette generator →

#7A40CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva