#7A40CE#7A40CE

#7A40CE is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.207 H 297.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7A40CE
RGBrgb(122, 64, 206)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 69%, 81%)
CMYKcmyk(40.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(41.63, 53.87, -64.28)
CIE-LCHlch(41.63, 83.87, 309.96°)
OKLaboklab(52.05% 0.0951 -0.1836)
OKLCHoklch(52.05% 0.207 297.4)
XYZxyz(20.9971, 12.2602, 59.6408)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CE #94CE40
analogous
#404DCE #7A40CE #C140CE
triadic
#7A40CE #CE7A40 #40CE7A
tetradic
#7A40CE #CE404D #94CE40 #40CEC1
square
#7A40CE #CE404D #94CE40 #40CEC1
split-complementary
#7A40CE #CEC140 #4DCE40
monochromatic
#421E75 #5D2BA6 #7A40CE #9C71DA #BEA1E7

Accessibility & contrast

On white

6.08
#7A40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7A40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CE
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CE#FFFFFF#000000##FFFFFF
##7A40CE1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#656382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a40ce;
/* rgb */ color: rgb(122, 64, 206);
/* oklch */ color: oklch(52.1% 0.207 297.4);
Tailwind
colors: {
  custom: {
    50: '#a779de',
    500: '#7a40ce',
    950: '#000000',
  },
}
SCSS
$custom: #7a40ce;
$custom-light: #a779de;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40ce",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 264.507,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52054,
    "c": 0.20675,
    "h": 297.4
  },
  "luminance": 0.12261
}

Semantic roles & 50–950 ramp

primary
#7A40CE
secondary
#BBD496
accent
#E245A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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