#7940C8#7940C8

#7940C8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.200 H 298.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7940C8
RGBrgb(121, 64, 200)
HSLhsl(265, 55%, 52%)
HSVhsv(265, 68%, 78%)
CMYKcmyk(39.5%, 68%, 0%, 21.6%)
CIE-LABlab(41.06, 52.15, -61.74)
CIE-LCHlch(41.06, 80.81, 310.19°)
OKLaboklab(51.48% 0.0946 -0.1761)
OKLCHoklch(51.48% 0.2 298.2)
XYZxyz(20.1412, 11.9016, 55.8685)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940C8 #8FC840
analogous
#404BC8 #7940C8 #BD40C8
triadic
#7940C8 #C87940 #40C879
tetradic
#7940C8 #C8404B #8FC840 #40C8BD
square
#7940C8 #C8404B #8FC840 #40C8BD
split-complementary
#7940C8 #C8BD40 #4BC840
monochromatic
#40206E #5C2D9D #7940C8 #9A70D6 #BC9FE3

Accessibility & contrast

On white

6.21
#7940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7940C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940C8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940C8#FFFFFF#000000##FFFFFF
##7940C81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#66607F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7940c8;
/* rgb */ color: rgb(121, 64, 200);
/* oklch */ color: oklch(51.5% 0.200 298.2);
Tailwind
colors: {
  custom: {
    50: '#a679da',
    500: '#7940c8',
    950: '#000000',
  },
}
SCSS
$custom: #7940c8;
$custom-light: #a679da;
$custom-dark: #000000;
JSON
{
  "hex": "#7940c8",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 265.147,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51481,
    "c": 0.19995,
    "h": 298.2
  },
  "luminance": 0.11902
}

Semantic roles & 50–950 ramp

primary
#7940C8
secondary
#B7D094
accent
#DF49A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7940C8

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

Preview Lab → · Contrast checker → · Palette generator →

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