#7A40C8#7A40C8

#7A40C8 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.200 H 298.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7A40C8
RGBrgb(122, 64, 200)
HSLhsl(266, 55%, 52%)
HSVhsv(266, 68%, 78%)
CMYKcmyk(39%, 68%, 0%, 21.6%)
CIE-LABlab(41.18, 52.34, -61.54)
CIE-LCHlch(41.18, 80.79, 310.38°)
OKLaboklab(51.59% 0.096 -0.1756)
OKLCHoklch(51.59% 0.2 298.7)
XYZxyz(20.2821, 11.9742, 55.8751)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C8 #8EC840
analogous
#404AC8 #7A40C8 #BE40C8
triadic
#7A40C8 #C87A40 #40C87A
tetradic
#7A40C8 #C8404A #8EC840 #40C8BE
square
#7A40C8 #C8404A #8EC840 #40C8BE
split-complementary
#7A40C8 #C8BE40 #4AC840
monochromatic
#41206E #5D2D9D #7A40C8 #9B70D6 #BC9FE3

Accessibility & contrast

On white

6.19
#7A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7A40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C8#FFFFFF#000000##FFFFFF
##7A40C81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#68607F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a40c8;
/* rgb */ color: rgb(122, 64, 200);
/* oklch */ color: oklch(51.6% 0.200 298.7);
Tailwind
colors: {
  custom: {
    50: '#a679da',
    500: '#7a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c8;
$custom-light: #a679da;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c8",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 265.588,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5159,
    "c": 0.20008,
    "h": 298.7
  },
  "luminance": 0.11974
}

Semantic roles & 50–950 ramp

primary
#7A40C8
secondary
#B6D094
accent
#DF499F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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