#7728AB#7728AB

#7728AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.197 H 307.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7728AB
RGBrgb(119, 40, 171)
HSLhsl(276, 62%, 41%)
HSVhsv(276, 77%, 67%)
CMYKcmyk(30.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(34.76, 55.63, -54.89)
CIE-LCHlch(34.76, 78.15, 315.38°)
OKLaboklab(46.27% 0.1205 -0.156)
OKLCHoklch(46.27% 0.197 307.7)
XYZxyz(15.7157, 8.3800, 39.3098)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7728AB #5CAB28
analogous
#3628AB #7728AB #AB289E
triadic
#7728AB #AB7728 #28AB77
tetradic
#7728AB #AB3628 #5CAB28 #289EAB
square
#7728AB #AB3628 #5CAB28 #289EAB
split-complementary
#7728AB #9EAB28 #28AB36
monochromatic
#321148 #541C79 #7728AB #973ED2 #B270DE

Accessibility & contrast

On white

7.85
#7728AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7728AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7728AB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7728AB#FFFFFF#000000##FFFFFF
##7728AB1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#6E4868
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7728ab;
/* rgb */ color: rgb(119, 40, 171);
/* oklch */ color: oklch(46.3% 0.197 307.7);
Tailwind
colors: {
  custom: {
    50: '#a36bc5',
    500: '#7728ab',
    950: '#000000',
  },
}
SCSS
$custom: #7728ab;
$custom-light: #a36bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7728ab",
  "rgb": {
    "r": 119,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 276.183,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46266,
    "c": 0.1971,
    "h": 307.7
  },
  "luminance": 0.0838
}

Semantic roles & 50–950 ramp

primary
#7728AB
secondary
#8EC46A
accent
#E54383
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7728AB

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

Preview Lab → · Contrast checker → · Palette generator →

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