#7A40BB#7A40BB

#7A40BB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.185 H 301.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7A40BB
RGBrgb(122, 64, 187)
HSLhsl(268, 49%, 49%)
HSVhsv(268, 66%, 73%)
CMYKcmyk(34.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.23, 49.08, -55.48)
CIE-LCHlch(40.23, 74.07, 311.49°)
OKLaboklab(50.62% 0.0976 -0.1577)
OKLCHoklch(50.62% 0.185 301.7)
XYZxyz(18.8269, 11.3922, 48.2111)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40BB #81BB40
analogous
#4043BB #7A40BB #B840BB
triadic
#7A40BB #BB7A40 #40BB7A
tetradic
#7A40BB #BB4043 #81BB40 #40BBB8
square
#7A40BB #BB4043 #81BB40 #40BBB8
split-complementary
#7A40BB #BBB840 #43BB40
monochromatic
#3F2160 #5C308D #7A40BB #996CCD #B999DC

Accessibility & contrast

On white

6.41
#7A40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7A40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40BB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40BB#FFFFFF#000000##FFFFFF
##7A40BB1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#085EB8
Tritanopia (blue-blind)
#6D5B78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a40bb;
/* rgb */ color: rgb(122, 64, 187);
/* oklch */ color: oklch(50.6% 0.185 301.7);
Tailwind
colors: {
  custom: {
    50: '#a578d0',
    500: '#7a40bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a40bb;
$custom-light: #a578d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40bb",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 268.293,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50617,
    "c": 0.18548,
    "h": 301.7
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#7A40BB
secondary
#ADC88F
accent
#D94F98
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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