#7A40CA#7A40CA

#7A40CA is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.202 H 298.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7A40CA
RGBrgb(122, 64, 202)
HSLhsl(265, 57%, 52%)
HSVhsv(265, 68%, 79%)
CMYKcmyk(39.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.32, 52.85, -62.46)
CIE-LCHlch(41.32, 81.82, 310.24°)
OKLaboklab(51.74% 0.0957 -0.1782)
OKLCHoklch(51.74% 0.202 298.2)
XYZxyz(20.5174, 12.0683, 57.1141)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40CA #90CA40
analogous
#404BCA #7A40CA #BF40CA
triadic
#7A40CA #CA7A40 #40CA7A
tetradic
#7A40CA #CA404B #90CA40 #40CABF
square
#7A40CA #CA404B #90CA40 #40CABF
split-complementary
#7A40CA #CABF40 #4BCA40
monochromatic
#411F70 #5D2CA0 #7A40CA #9B70D7 #BDA0E5

Accessibility & contrast

On white

6.15
#7A40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7A40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40CA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40CA#FFFFFF#000000##FFFFFF
##7A40CA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#676180
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a40ca;
/* rgb */ color: rgb(122, 64, 202);
/* oklch */ color: oklch(51.7% 0.202 298.2);
Tailwind
colors: {
  custom: {
    50: '#a779db',
    500: '#7a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7a40ca;
$custom-light: #a779db;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40ca",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 265.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51744,
    "c": 0.20231,
    "h": 298.2
  },
  "luminance": 0.12069
}

Semantic roles & 50–950 ramp

primary
#7A40CA
secondary
#B8D195
accent
#E048A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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