#7940A2#7940A2

#7940A2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.157 H 308.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7940A2
RGBrgb(121, 64, 162)
HSLhsl(275, 43%, 44%)
HSVhsv(275, 60%, 64%)
CMYKcmyk(25.3%, 60.5%, 0%, 36.5%)
CIE-LABlab(38.45, 42.76, -43.54)
CIE-LCHlch(38.45, 61.03, 314.48°)
OKLaboklab(48.77% 0.0976 -0.1227)
OKLCHoklch(48.77% 0.157 308.5)
XYZxyz(16.2388, 10.3406, 35.3159)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940A2 #69A240
analogous
#4840A2 #7940A2 #A2409A
triadic
#7940A2 #A27940 #40A279
tetradic
#7940A2 #A24840 #69A240 #409AA2
square
#7940A2 #A24840 #69A240 #409AA2
split-complementary
#7940A2 #9AA240 #40A248
monochromatic
#371D4A #582F76 #7940A2 #975FC0 #B48BD1

Accessibility & contrast

On white

6.84
#7940A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7940A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940A2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940A2#FFFFFF#000000##FFFFFF
##7940A21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#325BA0
Tritanopia (blue-blind)
#73536B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7940a2;
/* rgb */ color: rgb(121, 64, 162);
/* oklch */ color: oklch(48.8% 0.157 308.5);
Tailwind
colors: {
  custom: {
    50: '#a378be',
    500: '#7940a2',
    950: '#000000',
  },
}
SCSS
$custom: #7940a2;
$custom-light: #a378be;
$custom-dark: #000000;
JSON
{
  "hex": "#7940a2",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 274.898,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48766,
    "c": 0.15678,
    "h": 308.5
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#7940A2
secondary
#9ABC82
accent
#D3558A
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7940A2

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

Preview Lab → · Contrast checker → · Palette generator →

#7940A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva