#7A40BD#7A40BD

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

Color values

HEX#7A40BD
RGBrgb(122, 64, 189)
HSLhsl(268, 49%, 50%)
HSVhsv(268, 66%, 74%)
CMYKcmyk(35.4%, 66.1%, 0%, 25.9%)
CIE-LABlab(40.37, 49.58, -56.43)
CIE-LCHlch(40.37, 75.11, 311.30°)
OKLaboklab(50.76% 0.0974 -0.1605)
OKLCHoklch(50.76% 0.188 301.2)
XYZxyz(19.0425, 11.4784, 49.3466)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40BD #83BD40
analogous
#4045BD #7A40BD #B940BD
triadic
#7A40BD #BD7A40 #40BD7A
tetradic
#7A40BD #BD4045 #83BD40 #40BDB9
square
#7A40BD #BD4045 #83BD40 #40BDB9
split-complementary
#7A40BD #BDB940 #45BD40
monochromatic
#3F2162 #5C318F #7A40BD #9A6DCD #B99ADD

Accessibility & contrast

On white

6.37
#7A40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A40BD
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40BD#FFFFFF#000000##FFFFFF
##7A40BD1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#6C5C79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a40bd;
/* rgb */ color: rgb(122, 64, 189);
/* oklch */ color: oklch(50.8% 0.188 301.2);
Tailwind
colors: {
  custom: {
    50: '#a579d2',
    500: '#7a40bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a40bd;
$custom-light: #a579d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40bd",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 267.84,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.18774,
    "h": 301.2
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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