#7728C4#7728C4

#7728C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.221 H 301.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7728C4
RGBrgb(119, 40, 196)
HSLhsl(270, 66%, 46%)
HSVhsv(270, 80%, 77%)
CMYKcmyk(39.3%, 79.6%, 0%, 23.1%)
CIE-LABlab(36.79, 61.32, -66.38)
CIE-LCHlch(36.79, 90.37, 312.73°)
OKLaboklab(48.31% 0.1142 -0.1897)
OKLCHoklch(48.31% 0.221 301)
XYZxyz(18.3279, 9.4249, 53.0674)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7728C4 #75C428
analogous
#2928C4 #7728C4 #C428C3
triadic
#7728C4 #C47728 #28C477
tetradic
#7728C4 #C42928 #75C428 #28C3C4
square
#7728C4 #C42928 #75C428 #28C3C4
split-complementary
#7728C4 #C3C428 #28C429
monochromatic
#39135E #581E91 #7728C4 #964EDB #B481E5

Accessibility & contrast

On white

7.28
#7728C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7728C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7728C4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7728C4#FFFFFF#000000##FFFFFF
##7728C41.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7728c4;
/* rgb */ color: rgb(119, 40, 196);
/* oklch */ color: oklch(48.3% 0.221 301.0);
Tailwind
colors: {
  custom: {
    50: '#a56cd7',
    500: '#7728c4',
    950: '#000000',
  },
}
SCSS
$custom: #7728c4;
$custom-light: #a56cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7728c4",
  "rgb": {
    "r": 119,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 270.385,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48314,
    "c": 0.22141,
    "h": 301
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#7728C4
secondary
#A3CE7A
accent
#E93F93
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7728C4

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

Preview Lab → · Contrast checker → · Palette generator →

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