#7928C5#7928C5

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

Color values

HEX#7928C5
RGBrgb(121, 40, 197)
HSLhsl(271, 66%, 46%)
HSVhsv(271, 80%, 77%)
CMYKcmyk(38.6%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.14, 61.86, -66.38)
CIE-LCHlch(37.14, 90.73, 312.98°)
OKLaboklab(48.64% 0.1168 -0.1896)
OKLCHoklch(48.64% 0.223 301.6)
XYZxyz(18.7195, 9.6136, 53.6819)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7928C5 #74C528
analogous
#2A28C5 #7928C5 #C528C3
triadic
#7928C5 #C57928 #28C579
tetradic
#7928C5 #C52A28 #74C528 #28C3C5
square
#7928C5 #C52A28 #74C528 #28C3C5
split-complementary
#7928C5 #C3C528 #28C52A
monochromatic
#3B135F #5A1E92 #7928C5 #974FDB #B582E6

Accessibility & contrast

On white

7.18
#7928C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7928C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7928C5
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7928C5#FFFFFF#000000##FFFFFF
##7928C51.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#685377
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7928c5;
/* rgb */ color: rgb(121, 40, 197);
/* oklch */ color: oklch(48.6% 0.223 301.6);
Tailwind
colors: {
  custom: {
    50: '#a76cd8',
    500: '#7928c5',
    950: '#000000',
  },
}
SCSS
$custom: #7928c5;
$custom-light: #a76cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7928c5",
  "rgb": {
    "r": 121,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 270.955,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.22271,
    "h": 301.6
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7928C5

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

Preview Lab → · Contrast checker → · Palette generator →

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