#7A40BE#7A40BE

#7A40BE is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.189 H 301.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7A40BE
RGBrgb(122, 64, 190)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 66%, 75%)
CMYKcmyk(35.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.45, 49.83, -56.90)
CIE-LCHlch(40.45, 75.63, 311.21°)
OKLaboklab(50.84% 0.0973 -0.1619)
OKLCHoklch(50.84% 0.189 301)
XYZxyz(19.1515, 11.5220, 49.9202)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40BE #84BE40
analogous
#4045BE #7A40BE #B940BE
triadic
#7A40BE #BE7A40 #40BE7A
tetradic
#7A40BE #BE4045 #84BE40 #40BEB9
square
#7A40BE #BE4045 #84BE40 #40BEB9
split-complementary
#7A40BE #BEB940 #45BE40
monochromatic
#3F2162 #5D3190 #7A40BE #9A6DCE #BA9BDD

Accessibility & contrast

On white

6.36
#7A40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7A40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40BE
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40BE#FFFFFF#000000##FFFFFF
##7A40BE1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005FBB
Tritanopia (blue-blind)
#6B5D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a40be;
/* rgb */ color: rgb(122, 64, 190);
/* oklch */ color: oklch(50.8% 0.189 301.0);
Tailwind
colors: {
  custom: {
    50: '#a579d2',
    500: '#7a40be',
    950: '#000000',
  },
}
SCSS
$custom: #7a40be;
$custom-light: #a579d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40be",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 267.619,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50837,
    "c": 0.18887,
    "h": 301
  },
  "luminance": 0.11522
}

Semantic roles & 50–950 ramp

primary
#7A40BE
secondary
#AFC990
accent
#D94F99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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