#7928C4#7928C4

#7928C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.222 H 301.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7928C4
RGBrgb(121, 40, 196)
HSLhsl(271, 66%, 46%)
HSVhsv(271, 80%, 77%)
CMYKcmyk(38.3%, 79.6%, 0%, 23.1%)
CIE-LABlab(37.06, 61.63, -65.93)
CIE-LCHlch(37.06, 90.25, 313.07°)
OKLaboklab(48.56% 0.1171 -0.1883)
OKLCHoklch(48.56% 0.222 301.9)
XYZxyz(18.6053, 9.5680, 53.0805)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7928C4 #73C428
analogous
#2B28C4 #7928C4 #C428C1
triadic
#7928C4 #C47928 #28C479
tetradic
#7928C4 #C42B28 #73C428 #28C1C4
square
#7928C4 #C42B28 #73C428 #28C1C4
split-complementary
#7928C4 #C1C428 #28C42B
monochromatic
#3A135E #5A1E91 #7928C4 #974EDB #B581E5

Accessibility & contrast

On white

7.21
#7928C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7928C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7928C4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7928C4#FFFFFF#000000##FFFFFF
##7928C41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#685377
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7928c4;
/* rgb */ color: rgb(121, 40, 196);
/* oklch */ color: oklch(48.6% 0.222 301.9);
Tailwind
colors: {
  custom: {
    50: '#a76cd7',
    500: '#7928c4',
    950: '#000000',
  },
}
SCSS
$custom: #7928c4;
$custom-light: #a76cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7928c4",
  "rgb": {
    "r": 121,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 271.154,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48556,
    "c": 0.22175,
    "h": 301.9
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#7928C4
secondary
#A2CE7A
accent
#E93F91
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7928C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7928C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva