#7A40C2#7A40C2

#7A40C2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.193 H 300.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7A40C2
RGBrgb(122, 64, 194)
HSLhsl(267, 52%, 51%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(37.1%, 67%, 0%, 23.9%)
CIE-LABlab(40.73, 50.83, -58.77)
CIE-LCHlch(40.73, 77.70, 310.86°)
OKLaboklab(51.14% 0.0968 -0.1674)
OKLCHoklch(51.14% 0.193 300)
XYZxyz(19.5946, 11.6992, 52.2543)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C2 #88C240
analogous
#4047C2 #7A40C2 #BB40C2
triadic
#7A40C2 #C27A40 #40C27A
tetradic
#7A40C2 #C24047 #88C240 #40C2BB
square
#7A40C2 #C24047 #88C240 #40C2BB
split-complementary
#7A40C2 #C2BB40 #47C240
monochromatic
#402167 #5D3095 #7A40C2 #9A6ED1 #BB9DE0

Accessibility & contrast

On white

6.29
#7A40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7A40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C2#FFFFFF#000000##FFFFFF
##7A40C21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#6A5E7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a40c2;
/* rgb */ color: rgb(122, 64, 194);
/* oklch */ color: oklch(51.1% 0.193 300.0);
Tailwind
colors: {
  custom: {
    50: '#a679d5',
    500: '#7a40c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c2;
$custom-light: #a679d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c2",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 266.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51135,
    "c": 0.19336,
    "h": 300
  },
  "luminance": 0.11699
}

Semantic roles & 50–950 ramp

primary
#7A40C2
secondary
#B2CC92
accent
#DB4D9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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