#7A40BF#7A40BF

#7A40BF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.190 H 300.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7A40BF
RGBrgb(122, 64, 191)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 66%, 75%)
CMYKcmyk(36.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(40.52, 50.08, -57.37)
CIE-LCHlch(40.52, 76.15, 311.12°)
OKLaboklab(50.91% 0.0972 -0.1633)
OKLCHoklch(50.91% 0.19 300.8)
XYZxyz(19.2611, 11.5658, 50.4978)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40BF #85BF40
analogous
#4045BF #7A40BF #BA40BF
triadic
#7A40BF #BF7A40 #40BF7A
tetradic
#7A40BF #BF4045 #85BF40 #40BFBA
square
#7A40BF #BF4045 #85BF40 #40BFBA
split-complementary
#7A40BF #BFBA40 #45BF40
monochromatic
#3F2163 #5D3191 #7A40BF #9A6ECE #BA9CDE

Accessibility & contrast

On white

6.34
#7A40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7A40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40BF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40BF#FFFFFF#000000##FFFFFF
##7A40BF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#6B5D7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a40bf;
/* rgb */ color: rgb(122, 64, 191);
/* oklch */ color: oklch(50.9% 0.190 300.8);
Tailwind
colors: {
  custom: {
    50: '#a679d3',
    500: '#7a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #7a40bf;
$custom-light: #a679d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40bf",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 267.402,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50912,
    "c": 0.19,
    "h": 300.8
  },
  "luminance": 0.11566
}

Semantic roles & 50–950 ramp

primary
#7A40BF
secondary
#B0CA91
accent
#D94E9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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