#7928AC#7928AC

#7928AC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.199 H 308.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7928AC
RGBrgb(121, 40, 172)
HSLhsl(277, 62%, 42%)
HSVhsv(277, 77%, 67%)
CMYKcmyk(29.7%, 76.7%, 0%, 32.5%)
CIE-LABlab(35.13, 56.22, -54.88)
CIE-LCHlch(35.13, 78.57, 315.69°)
OKLaboklab(46.61% 0.1231 -0.1559)
OKLCHoklch(46.61% 0.199 308.3)
XYZxyz(16.0888, 8.5614, 39.8267)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7928AC #5BAC28
analogous
#3728AC #7928AC #AC289D
triadic
#7928AC #AC7928 #28AC79
tetradic
#7928AC #AC3728 #5BAC28 #289DAC
square
#7928AC #AC3728 #5BAC28 #289DAC
split-complementary
#7928AC #9DAC28 #28AC37
monochromatic
#331149 #561C7A #7928AC #993FD2 #B471DE

Accessibility & contrast

On white

7.74
#7928AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7928AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7928AC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7928AC#FFFFFF#000000##FFFFFF
##7928AC1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#714869
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7928ac;
/* rgb */ color: rgb(121, 40, 172);
/* oklch */ color: oklch(46.6% 0.199 308.3);
Tailwind
colors: {
  custom: {
    50: '#a56bc6',
    500: '#7928ac',
    950: '#000000',
  },
}
SCSS
$custom: #7928ac;
$custom-light: #a56bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7928ac",
  "rgb": {
    "r": 121,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 276.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46606,
    "c": 0.1986,
    "h": 308.3
  },
  "luminance": 0.08561
}

Semantic roles & 50–950 ramp

primary
#7928AC
secondary
#8EC56B
accent
#E54281
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7928AC

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

Preview Lab → · Contrast checker → · Palette generator →

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