#7A40D3#7A40D3

#7A40D3 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.212 H 296.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7A40D3
RGBrgb(122, 64, 211)
HSLhsl(264, 63%, 54%)
HSVhsv(264, 70%, 83%)
CMYKcmyk(42.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(42.01, 55.14, -66.54)
CIE-LCHlch(42.01, 86.42, 309.65°)
OKLaboklab(52.45% 0.0942 -0.1902)
OKLCHoklch(52.45% 0.212 296.4)
XYZxyz(21.6142, 12.5071, 62.8907)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40D3 #99D340
analogous
#4050D3 #7A40D3 #C340D3
triadic
#7A40D3 #D37A40 #40D37A
tetradic
#7A40D3 #D34050 #99D340 #40D3C3
square
#7A40D3 #D34050 #99D340 #40D3C3
split-complementary
#7A40D3 #D3C340 #50D340
monochromatic
#421D7C #5D28AE #7A40D3 #9D72DE #BFA3EA

Accessibility & contrast

On white

6.00
#7A40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7A40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40D3
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40D3#FFFFFF#000000##FFFFFF
##7A40D31.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0061D0
Tritanopia (blue-blind)
#636485
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a40d3;
/* rgb */ color: rgb(122, 64, 211);
/* oklch */ color: oklch(52.4% 0.212 296.4);
Tailwind
colors: {
  custom: {
    50: '#a779e1',
    500: '#7a40d3',
    950: '#000000',
  },
}
SCSS
$custom: #7a40d3;
$custom-light: #a779e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40d3",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 263.673,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52448,
    "c": 0.2123,
    "h": 296.4
  },
  "luminance": 0.12508
}

Semantic roles & 50–950 ramp

primary
#7A40D3
secondary
#BED798
accent
#E642A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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